using jquery i am adding new elements to a div element i also have set id of new added element but still javascript can not find that newly added elements.  $.ajax({  //ajax call     type: "POST",            url: "ajax/ajax.php",      data: { users: values } }).done(function( msg ) {     //do something with msg which is response     //this line will put the response to item with id `#txtHint`.     $("#divselect").html(msg)     //alert(msg); }); });   new elements added successfully but on button click javascript can not find that new element id. is there any way to reload only javascript or what should i do ?       $("#validator").click(function (){//validator is my submit button id       var value = document.getElementById('select_division'); //select_division is id of my new added element      alert(value);  }   then comes reference error. on this.
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.
Custom cursor in WPF? I want to use an image or icon as a custom cursor in WPF app. What's the best way to do it? How to highlight an entire paragraph? Inequality Proof in Real Numbers: If $p+q=1$ then $pq\le\frac14$ Let $p,q \in \mathbb R$, and $p+q=1$. Prove that $$pq \le \frac{1}{4}.$$   The first thing I did was define 3 possibilities that we can have from $p+q=1$:  1º  $p$ or $q$ is negative. Example:   $p=-10$, $q=11$   $-10+11=1$  $(-10)(11)=-110$  So if $p$ or $q$ are negative the inequality $pq$ $\le$ $\frac14$ holds.  2º $p$ or $q$ is $0$, that makes the inequality $pq$ $\le$ $\frac14$ be $0$ $\le$ $\frac14$, the inequality holds.  3º The final possibility I saw  was $0$ $\lt$ $p,q$ $\lt 1$, here i just see that the max value from $p,q$ can be $p,q = 1/2$ making $\frac12 + \frac12 = 1$ and $(\frac12) (\frac12) \le \frac14$, but i do not see the elegant way of proving that with other values the inequality holds.  I apologize in advance if I made any mistake or missed something. What does the symbol with a shield and two swords next to clan members' names mean? When I open my clan roster, I now notice there is a symbol that has a shield + two swords next to most clan member's name.  What does this signify?  Are they ready for clan battles? I don't understand this and I'm now worried as I have donated to a lot of servers and I don't want to lose this account. On the launcher it says my new username but when I log on it says "Account not Authenticated with minecraft.net" and "Non-Valid Username".  How can I regain the ability to use my account online? Use worksheet name as a variable in a lookup I have a program which produces useful information on stdout but also reads from stdin. I want to redirect its standard output to a file without providing anything on standard input. So far, so good: I can do:  program &gt; output   and don't do anything in the tty.  However, the problem is I want to do this in the background. If I do:  program &gt; output &amp;   the program will get suspended ("suspended (tty input)").  If I do:  program &lt; /dev/null &gt; output &amp;   the program terminates immediately because it reaches EOF.  It seems that what I need is to pipe into program something which does not do anything for an indefinite amount of time and does not read stdin. The following approaches work:  while true; do sleep 100; done | program &gt; output &amp; mkfifo fifo &amp;&amp; cat fifo | program &gt; output &amp; tail -f /dev/null | program &gt; output &amp;   However, this is all very ugly. There has to be an elegant way, using standard Unix utilities, to "do nothing, indefinitely" (to paraphrase man true). How could I achieve this? (My main criteria for elegance here: no temporary files; no busy-waiting or periodic wakeups; no exotic utilities; as short as possible.) What are the eigenvalues of $\operatorname{ad}x$? Let $x\in \operatorname{gl}(n,F)$ have $n$ distinct eigenvalues $a_1,\ldots,a_n$ in $F$. Prove that the eigenvalues of $\text{ad }x$ are precisely the $n^2$ scalars $a_i-a_j$ ($1\leq i,j\leq n$), which of course need not be distinct.   So we can represent $x$ by an $n\times n$ matrix $X$. We have $Xv_1=a_1v_1,\ldots, Xv_n=a_nv_n$ for eigenvectors $v_1,\ldots,v_n$.   Now, $\operatorname{ad}x$ takes $y\in \operatorname{gl}(n,F)$ to $xy-yx$. I need to show that some $y$ is taken to a scalar multiple of itself, where that scalar is $a_i-a_j$. What could be that $y$? What is the syntax for IF/ELSE in bash? I am trying to pull logs and doing few others things directly. written a small line BASH but not working. I am sure thats with IF Condition.    sed -rne '/21:25:07/,/21:50:07/ p'  server.log.2015-04-21 &gt; /tmp/filename.log ; du -sh  /tmp/filename.log ;  if [`du -sh  /tmp/filename.log` -gt 0] then gzip /tmp/filename.log ; Java toString() using reflection? I have seen many articles that talk about a star's "habitable zone" as the ring around it which is just the right temperature for planets to have liquid water, which is necessary for life. My question is, why does a planet need to have liquid water in order to sustain life? Who says that extraterrestrial life can't live off of some other kind of sustenance? $\mathbb{Z}[X]/(X^2-1)$ is not isomorphic with $\mathbb{Z}\times \mathbb{Z}$ I have to show that the ring $\mathbb{Z}[X]/(X^2-1)$ is not isomorphic with $\mathbb{Z}\times \mathbb{Z}$.    I know that $(\mathbb{Z}\times\mathbb{Z})^*=\{(\pm1,\pm1)\}$, so I thought I should be looking for elements which have inverses in $\mathbb{Z}[X]/(X^2-1)$ and hopefully find more or less than 4. But I didnt succeed, so I need hints. Thanks. Questions about right ideals How can I change Blender's theme? I just downloaded blender and its very bright. I want it darker. How can I change the color of it? Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking? I am learning about linux security and struggling to understand why a USB stick with a character device on it is potentially dangerous.  If I have a USB stick with a bash executable that has setuid root on it, the danger is obvious: Anybody with such a USB stick can gain root privileges on my computer if I have an entry like   /dev/sdb1 /media/usbstick auto defaults 0 0   in my /etc/fstab because defaults includes suid.  But what about character devices? How can I use a character device to gain root privileges or break stuff if a USB stick with a character device on it gets mounted with dev or defaults? How can I remove all unused materials from a .blend file? How to show to the user a progression in a script? There are 8 crew members, The leading member wants that only a crew of 5 people or more could open a safe he bought, To each member he gave equal amount of keys, and locked the safe with several locks.  What's the minimal number of locks he should put:   at least 5 crew members would be required to open the safe? Any team of 5 crew members could open the safe, but none of the 4 team crew members.   1,2 stands individually of course. I just updated all my sites using the patch method of resolving the Drupal SA-CORE-2014-005 exploit. I just read reports that just yesterday there is someone from a Russian IP infiltrating drupal sites.     My main concerns are now:   How do I tell if my sites have been comprised? What should I search for in my apache access logs to detect if my site was a victim or not? So far what are these hackers doing to comprised sites? If the universe is expanding, what is it expanding into? If the universe is expanding, what is it expanding into? When the big bang happened where did it occur?  When the big bang happened how did it occur?  Where did the energy come from? Energy can not be created or destroyed does that mean, energy has existed before the universe was here?