Javascript: (Send data and will receive json content)  $('#member_group_dropDown').on('change', function () {     var inputData = {};     inputData.groupId = $(this).val();     if (inputData.groupId != "") {         $.post(myProp.base_url + 'folder/class/method', inputData, function (outputData) {                 $('#selected_group').html(outputData.content);                 $('#selected_group').html();         }, 'json');     }     $('#selected_group').html(""); });   PHP: (The content, which I will get it through ajax)  // assign buffering to variable then, send it for display ob_start(); echo form_open(base_url('folder/class/method'), array('method' =&gt; 'post', 'id' =&gt; 'update_memberGroup_form')); ?&gt; &lt;div class="group_title fontSize_20"&gt;     &lt;span&gt;&lt;/span&gt;     permissions&lt;?php echo $memberGroups[0]['group_name']; ?&gt; &lt;/div&gt; &lt;?php foreach ($member_permissions as $permission) {     ?&gt;     &lt;div class="container"&gt;         &lt;label for="&lt;?php echo $permission['name']; ?&gt;" title="&lt;?php echo $permission['description']; ?&gt;"&gt;&lt;?php echo $permission['title']; ?&gt;&lt;/label&gt;         &lt;?php if ($permission['input_type'] == 'radio'): ?&gt;             &lt;input type="radio" name="&lt;?php echo $permission['name']; ?&gt;" value="1"&gt; &lt;span class="fontSize_16"&gt;yes&lt;/span&gt;&lt;input type="radio" name="&lt;?php echo $permission['name']; ?&gt;" value="0"&gt;&lt;span class="fontSize_16"&gt;no&lt;/span&gt;         &lt;?php else: ?&gt;             &lt;input type="text" name="&lt;?php echo $permission['name']; ?&gt;" class="required" value=""&gt;         &lt;?php endif; ?&gt;     &lt;/div&gt;     &lt;?php } ?&gt;  &lt;div&gt;     &lt;input type="submit" class="formButton3" value="edit"&gt;        &lt;/div&gt; &lt;/form&gt;     &lt;?php $content = ob_get_contents(); ob_end_clean(); echo json_encode('content' =&gt; $content));   Now, when Apply an event on part of the content which I have received, as follow:  $('#update_memberGroup_form').on('submit', function () {     alert('hi');      return false; });   it is not implemented.
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
Changing color of already printed text For making a small quiz in class I am working on a presentation in beamer.  I want to change the color of statements to red (wrong statement) or green (right statement) but only after my class answered the question.  I was searching the internet, but only found the color package, where you apparently can only change the text color before it appears.  Can someone point me into the right direction? How to display alt text for an image in chrome I'm working through Rotman (1994). It's the 2nd chapter where my curiosity lead me to a question that is not from the book. Here's the problem that inspired the question:      2.8. Imbed $S_n$ as a subgroup of $A_{n+2}$, but show, for $n\ge2$, that $S_n$ cannot be imbedded in $A_{n+1}.$    Since the alternate subgroup has the property of even parity, I thought that a little investigation of parity for the second and third symmetric groups was in order. So I constructed a table for each of them, grouped by even and odd number of disjoint products.   I'll forego writing the actual table and simply provide the answers. In symmetric groups with an even idegree, two even permutations come together under composition to produce an even permutation. Two odds also make an even. Two different parities produce odd elements.   When the symmetric group has an odd degree, e.g. $S_3$, two odds make an odd, two evens make an odd, and two different parities make an even element. Exactly the opposite results from the symmetric groups with even index.   Two questions: is this enough to prove the $A_{n+1}$ case? And can this be generalized modulo 2 e.g. $A_{2n+1}$? Can wizards create their own spells? In the Harry Potter series, are wizards capable of creating their own spells, or are they limited to the spells that they're taught/learn?  I seem to remember something about Snape creating sectumsempra, but I'm not sure if that really is the case. Difference between "irascible", "fractious", "irritable" and "atrabilious"? It seems that they can all mean "easily provoked to anger"  irascible：Easily provoked to outbursts of anger; irritable.  fractious：Irritable; argumentative; quarrelsome.  irritable：1.Capable of being irritated. 2.Easily exasperated or excited.  atrabilious：1.Characterized by melancholy. 2.ill-natured; malevolent. How to change user in WinSCP? I'm using WinSCP to access Unix computers. How can I change user after I have logged into a Unix server using WinSCP?  E.g. I have personal account in Unix computer A. I can log into this computer using PuTTY and then change user to root user  $sudo /usr/bin/su - rootuser   How can I do the same thing using WinSCP? I don't know the password for rootuser. Assume that $(\text{X}, T)$ is compact and Hausdorff. Prove that a comparable but different topological space $(\text{X},T')$ is not. Say that a topological space is CH if it is both compact and Hausdorff.   Let $T$ and $T'$ be two topologies on the same set X that are comparable   but different, i.e., $T$ is either strictly smaller or strictly larger than $T'$.   Assume that $(\text{X}; T )$ is CH. Prove that $(\text{X}; T')$ is not CH.   I just can seem to get started, so I was wondering if anybody could give me a hint...  If $T' \subsetneqq T$, then the identity $id: (\text{X},T) \rightarrow (\text{X}, T')$ is continuous and surjective. This implies that $id(\text{X},T) = (\text{X},T')$ is also compact. So in order to show that $(\text{X},T')$ is not CH, I need to show that it is not Hausdorff, right? But I'm stuck... Why there are real numbers with infinite digits, but no such natural numbers (or another reason why real numbers are uncountable) This question is me trying to understand (again) why there can be no one-to-one correspondence between the sets of natural and real numbers.  The source of confusion is this: if we abstract completely from the properties and operations on numbers and just think of them as strings of digits, it appears to be possible to list all the real numbers between $0$ and $1$ and all positive integers having the same digits in the same (or reverse) order, for example:  $$0.1 \to 1$$  $$0.01 \to 10$$  $$0.0101 \to 1010$$  $$0.110101 \to 101011$$  I use binary expansion for simplicity.  Since irrational numbers have infinite expansions, we would have to consider some kind of 'infinite natural numbers', like:  $$101110001\dots$$  or  $$\dots101110001$$  I think the main (and only) reason why such numbers don't exist is this requirement:   We need the sets of real and natural numbers to be ordered. We need to be able to do arithmetics on real and natural numbers.   Obviously, if we consider any of two types of 'infinite natural numbers' and the usual absolute value, we find that it's impossible to order them, or do arithmetics with them.  The only way is to change the norm (to $p-$adic norm for example).  While with the real numbers it's still possible to order them, and do arithmetics with them when they have infinite amount of digits in their expansion (or at least in principle).     Is my reasoning correct? Are the two requirements (ordering and arithmetics) enough to explain why natural numbers with infinite amount of digits do not exist, while real numbers do?   This confusion is not restricted to me alone, see  for example What to do when my 3-year-old holds poop in and won't go in diaper or on potty? So essentially does margin collapsing occur when you don't set any margin or padding or border to a given div element? Increasing spacing between section number and title in the table of contents I'm using the simple ordinary \tableofcontents command to produce a table of contents, and I find that the resulting spacing between the section number and the section title is too small:    Can someone tell me how to fix this, please. My documentclass is memoir, if that matters. How to show that every Boolean ring is commutative? In the digital age of photography, we can see a range of digital camera sensors sizes in use, from 1/3.2" in small phones, up to Medium format sensors that are 53.4 x 40.0mm in size or more!  Why has no company endevoured to produce a sensor that can be considered to be large format (50mm X 80mm or larger)? Do such camera sensors exist in non-consumer products? Correct way to use include and includeonly when writing a large document like a thesis Why would I vote for an increase in the number of authorized shares? When should you use WP_Query vs query_posts() vs get_posts()? It seems like half the tutorials in the  and around the blogosphere use  and half use . They all do similar things, so when should I use one over the others? A term for when people insist on giving you help you didn't ask for? People love to tell other people what to do. It may not be control, so much as trying to help, especially when you've asked for help directly. However, there's a difference between answering someone's question and answering while piling on recommendations the person didn't ask about, and this is what I'm seeking a term for. Advertising and marketing feel similar to me in this vein. In the worst cases this can be overzealous religious followers professing your damnation if you don't follow with them (I think in Christianity they call it "witnessing"). Any which way, it comes across to me as a form of unsolicited advice: I didn't ask for it, so I don't want it; I want to stay focused.  Is there a better term for this than "unsolicited advice"? Also, is there a term for a person who exhibits this kind of behavior frequently? Can I get back my saved data? I have this table but check constraint is throwing me an error:     Column CHECK constraint for column 'MedicamentRegulated' references another column, table 'Medicaments'.   I've seen this as allowed in SQL Server but I don't know why it doesn't work :/  CREATE TABLE Medicaments ( MedicamentID INT NOT NULL IDENTITY(1,1) PRIMARY KEY, Name VARCHAR(50), DateValidity DATE, MedicamentRegulated BIT CHECK((MedicamentRegulated = 1 AND DateValidity IS NOT NULL)    OR MedicamentRegulated = 0) ) Integral of $\sin (x^3)dx$ $$\int \sin (x^3)dx$$ I have tried some substitutions, but I haven't reached the goal... Can you help me?