i just started using JQuery and i have a problem, regarding adding a click event listener for a dinamically created button.  So when the user click on button number one, my first function simply add a second button into a div. The problem is that using the same method, my listener for the second button is not working. Here is a simple exemple of what I'm trying to do.   &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){     //listener for first button     $("#button1").click(function(event){         event.preventDefault();         $("#newElement").append("&lt;input type='button' id='button2' value='Need listener for this new button'&gt;");     });      //listener for the seccond button (problematic one)     $("#button2").click(function(event){         event.preventDefault();         alert("Second button clicked!");     }); }); &lt;/script&gt; &lt;title&gt;Exemple JQuery&lt;/title&gt; &lt;/head&gt; &lt;body&gt;     &lt;input type="button" id="button1" value="Add a new button dynamically"&gt;     &lt;div id="newElement"&gt;      &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;   Any ideas are very welcome. Thank you
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.
The correct omission of the definite and indefinite articles Evaluation of $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} = $$   $\bf{My\; Try::}$ I have solved Using Direct formula::  $$\sin \frac{\pi}{n}\cdot \sin \frac{2\pi}{n}\cdot......\sin \frac{(n-1)\pi}{n} = \frac{n}{2^{n-1}}$$  Now Put $n=7\;,$ We get   $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7}\cdot \sin \frac{4\pi}{7}\cdot \sin \frac{5\pi}{7}\cdot \sin \frac{6\pi}{7}=\frac{7}{2^{7-1}}$$  So $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} =\frac{\sqrt{7}}{8}$$  Now my question is how can we solve it without using Direct Formula, Help me  Thanks I'm a fourth year undergraduate student in a university in the U.S., and this is my last semester. I have already applied to graduate schools, and I'm currently awaiting responses. Since I have already finished all my requirements and am ready to graduate, I wanted to go part time this semester. I am aware of how it affects my financial aid; however, I do not know if it has an effect on my admittance to graduate school. I do not mean whether or not I get accepted (the decisions will happen without knowledge of my current semester), but whether I am eligible to attend graduate school if I have been part time for a semester. That is, will there be any potential issues when the schools that have accepted me see my final transcript and see I was part time? Is there a universal answer to this? Or should I contact each school individually and ask about their policy?   Also, are there any other potential issues with going part time that I haven't mentioned? Anything noteworthy I might have missed? Is the following word order acceptable? I need your opinion about the word order in the following sentence: “In her garden grows a cherry-tree.“? Is it grammatically acceptable? How to reduce the fan noise and how to increase battery life? I have a brand new Sony Vaio S series laptop.() It came factory installed with Windows 7 professional Edition 64bit. Runs Intel core i5, 500 GB HDD , 4GB Ram. First I installed ubuntu 11.10 64 bit along side Windows to dual boot. Later,since the problem did not solve, I installed ubuntu 12.04 64bit along side Windows to dual boot. However the problem keeps annoying me.  Problem: When running ubuntu 11.10/12.04, the battery lasts only about 1.5 hours. The Fan runs loud and continuously. And there is a lot of heat generated. System monitor shows less than 5% CPU used. My laptop enjoys hybrid graphic and I tried turning off ADM graphic card and keep Intel graphic card on. However I can not get the Fan noise or heat to go away and consequently the battery drain continues. BTW, in windows, the laptop gives 4-5 hours of battery power, Fan is silent and there is no heat problem. Any ideas on how to reduce the fan noise and how to increase battery life in ubuntu 11.10/12.04? Using the article document class, how can one remove the newline at the end of a subsubsection title?  I am using \documentclass{article}; I do not currently use titlesec or any of the alternatives; I do use fancyhdr. Can Hooke's law be derived? Can we derive  from the theory of elasticity? I know it is not a fundamental law and therefore can be derived from more basic considerations. I know that any subset of V with more than k vectors is always linearly dependent, but how do I include matrix A into the vectors given to prove the statement?   Also, for part (b), does the statement mean that Ax=0 only has the trivial solution since V intersects span{u1, u2, ..., uk}={0}?  Any help would be appreciated! Thank you! lim sup inequality $\limsup ( a_n b_n ) \leq \limsup a_n \limsup b_n $ I´m not sure how to start with this proof, how can I do it? $$ \limsup ( a_n b_n ) \leqslant \limsup a_n \limsup b_n  $$ I also have to prove, if $ \lim a_n $ exists then: $$ \limsup ( a_n b_n  ) = \limsup a_n \limsup b_n  $$ Help please, it´s not a homework I want to learn. How can I get out of the debt-trap as quickly as possible? I have a credit card with 30% interest and a real estate loan with 11% interest. The amount of debt on my card is lower than the real estate loan.   I want to redeem the installments of the real estate loan, but I can't do it because the credit card debt takes all my money.    What can I do in this situation? How can I get out of the debt-trap as quickly as possible?   I have a 4-room house and 2 cars, and 2 children who have to go to school, that's why there are a lot of fix expenses. I'm currently reading a little deeper into the Axiom of Choice, and I'm pleasantly surprised to find it makes the arithmetic of infinite cardinals seem easy. With AC follows the Absorption Law of Cardinal Arithmetic, which states that for $\kappa$ and $\lambda$ cardinal numbers, the larger infinite and the smaller nonzero, then $\kappa+\lambda=\kappa\cdot\lambda=\max(\kappa,\lambda)$.  I was playing around with the equation $k+\aleph_0=\mathfrak{c}$ for some cardinal $k$. From the above, it follows that $\mathfrak{c}=k+\aleph_0=\max(k,\aleph_0)$, which implies $k=\mathfrak{c}$.  I'm curious, can we still show $k=\mathfrak{c}$ without the Axiom of Choice? Is it maybe possible to bound $\mathfrak{c}-\aleph_0$ above and below by $\mathfrak{c}$? But then I'm not quite sure such algebraic manipulations even mean anything, or work like that here. Certainly normal arithmetic does not! Thanks. Install Linux from Linux Why does $x$ divided by zero not equal $x$? After all, $x$ is not being divided by anything. Splitting a large document into several files Cannot get grub menu to timeout (or go away) I am running Ubuntu 12.04.  I cannot for the life of me get the grub menu (with options) to go away.  I would like it to auto-boot into the first option. I've edited /etc/default/grub so that it looks like the following:  GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""   After this, I ran sudo update-grub. Then I realized that I had grub 2, so I ran sudo update-grub2 (both make it look like they create the grub.cfg file successfully.  I restart my computer and it goes back to the grub menu and just sits there until I make a choice. This is not desirable if the power goes out... :-)  I also tried reinstalling grub using sudo grub-install /dev/sda - also unsuccessful Why do some Debian packages have a "+deb7u2" suffix? I figured the "7u2" part stood for "Debian 7.2" (aka "wheezy"). But I'm wondering if anybody knows the official answer as to why some packages have it and others do not.  Example:   The only time "+deb7u2" is appended to the version is when the package gets put in the "stable" release. Does this mean that's a "tag" to indicate a checkin to stable from another repo? Find $F$-related vector fields on $M\times N$, where $F(x)=(x, f(x))$ I am reading Lee's book on Differential geometry. In Chapter 4, Lee has this exercise.  Let $M$, $N$ be smooth manifolds, and let $f:M\to N$ be a smooth map. Define $F : M\to M \times N$ by $F(x) = (x, f(x) )$. Show that for every smooth vector field $V$ of $M$ , there is a smooth vector field on $W$ on $M \times N$ that is $F$-related to $V$.  I can understand that we must have $W_{(x,f(x))}=V_x\oplus Df(x)V_p$ for all $x\in M.$ The set $\{(x,f(x)):x\in M\}$ is a closed set in $M\times N.$ Therefore, if we can show that for all $(p,f(p))\in M\times N$ there is a neighbourhood $U_p$ and a smooth vector field on $U_p$ extending $V_x\oplus Df(x)V_x$ we are done by partition of unity. But I cannot show that. Can someone help me out? I heard the following dialog in a British English movie:     Words go round quick. All the little tongues go clack, clack, clack.   What does this mean, and why was the word "quick" used instead of "quickly"? Virtualbox: OS cannot use the new extended disk space (.vdi) I am running Virtualbox. I increased the size of my hard disk (.vdi) from 10G to 15G. Now when I start my Mint vm, the hard disk reports as 7.5g (df) even though i extended it (fdisk -l). I am not sure what is the problem. Can anyone point me the problem?  $ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda1     &gt;&gt;7.5G&lt;&lt; 7.1G   61M 100% / udev            1.5G  4.0K  1.5G   1% /dev tmpfs           581M  888K  581M   1% /run none            5.0M     0  5.0M   0% /run/lock none            1.5G   88K  1.5G   1% /run/shm  $ sudo fdisk -l Disk /dev/sda: &gt;&gt;16.1 GB&lt;&lt;, 16106127360 bytes 255 heads, 63 sectors/track, 1958 cylinders, total 31457280 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000c55a4     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048    15728639     7863296   83  Linux /dev/sda2        15730686    16775167      522241    5  Extended /dev/sda5        15730688    16775167      522240   82  Linux swap / Solaris  $ vboxmanage showhdinfo mint.vdi UUID:                 a94931b9-673c-440a-ab6b-2c3eedd0cf93 Accessible:           yes Logical size:         15360 MBytes Current size on disk: 7806 MBytes Type:                 normal (base) Storage format:       VDI Format variant:       dynamic default Location:             /opt/virtualization/vm/mint.vdi Is there a way to install fonts on wine?   I'm looking to install fonts so i can use them to render text differently on various apps. Specifically myriad.