When we click OPEN, without adding to FAV first then OPEN works fine, heals when we add a line of code html to FAV then OPEN executes as many positions as possible e.g. OPEN 3 from below, performed 3 times.  &lt;body&gt;     &lt;div class="content"&gt;         &lt;div class="box-right"&gt;             &lt;ul class="list_links" id="list_links_fav"&gt;&lt;/ul&gt;             &lt;ul class="list_links" id="list_links"&gt;               &lt;li class="list-group-item"&gt; &lt;button id="open" value="pathWay_value1"&gt;open&lt;/button&gt; &lt;span&gt;pathWay_value1&lt;/span&gt; &lt;button id="fav"&gt; add to fav&lt;/button&gt; &lt;/li&gt;               &lt;li class="list-group-item"&gt; &lt;button id="open" value="pathWay_value2"&gt;open&lt;/button&gt; &lt;span&gt;pathWay_value2&lt;/span&gt; &lt;button id="fav"&gt; add to fav&lt;/button&gt; &lt;/li&gt;               &lt;li class="list-group-item"&gt; &lt;button id="open" value="pathWay_value3"&gt;open&lt;/button&gt; &lt;span&gt;pathWay_value3&lt;/span&gt; &lt;button id="fav"&gt; add to fav&lt;/button&gt; &lt;/li&gt;               &lt;li class="list-group-item"&gt; &lt;button id="open" value="pathWay_value4"&gt;open&lt;/button&gt; &lt;span&gt;pathWay_value4&lt;/span&gt; &lt;button id="fav"&gt; add to fav&lt;/button&gt; &lt;/li&gt;               &lt;li class="list-group-item"&gt; &lt;button id="open" value="pathWay_value5"&gt;open&lt;/button&gt; &lt;span&gt;pathWay_value5&lt;/span&gt; &lt;button id="fav"&gt; add to fav&lt;/button&gt; &lt;/li&gt;             &lt;/ul&gt;         &lt;/div&gt;     &lt;/div&gt; &lt;/body&gt;   $(document).ready(function(){   $('button#fav').on('click', function () {           console.log('Clicked #fav');           fav_value = $(this).closest("li").html();           console.log(fav_value);           $('#list_links_fav').append('&lt;li class="list-group-item"&gt;' + fav_value + '&lt;/li&gt;');           $(this).closest("li").remove();           console.log("Added to fav");                $(document).ready(function(){               $('button#open').on('click', function () {               console.log('Clicked #open');               var fired_button = $(this).val();               console.log(fired_button);               });               });   }); });  $(document).ready(function(){   $('button#open').on('click', function () {           console.log('Clicked #open');           var fired_button = $(this).val();           console.log(fired_button);   }); });
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.
Install packages from newer release without building (apt pinning) I need these packages with the latest upstream version backported for ubuntu/natty   libccid_1.4.5-0ubuntu1_amd64.deb libpcsclite1_1.8.1-0ubuntu1_amd64.deb libpcsclite-dev_1.8.1-0ubuntu1_amd64.deb libusb-1.0-0_1.0.9-0ubuntu1_amd64.deb libusb-1.0-0-dev_1.0.9-0ubuntu1_amd64.deb opensc_0.12.2-1ubuntu1ppa1~natty1_amd64.deb pcscd_1.8.1-0ubuntu1_amd64.deb pcsc-tools_1.4.18-0ubuntu1_amd64.deb   I tried to build them from source with update but it failed. I am not an expert at packaging and there are so many tutorials and recipes out there.  Do you know a good and up to date tutorial for backporting Ubuntu packages?  How do I get packages from other releases without having to build them myself? Remove subscribers from Auto Suppression List What is postselection in quantum computing? A quantum computer can efficiently solve problems lying in the complexity class . I have seen a claim the one can (potentially, because we don't know whether BQP is a proper subset or equal to PP) increase the efficiency of a quantum computer by applying postselection and that the class of efficiently solvable problems becomes now postBQP = .  What does postselection mean here? Are drops in Google ranking common after switching to https? About a week ago I made the switch to https on one of my sites. I'm positive I did everything right. Properly setup 301 redirects from http to https versions. Added and verified https version in Webmaster Tools. Updated all internal links. Submitted new sitemap.  Despite that, many of my pages (about 40%) lost their rankings almost immediately. Those that dropped went from page 1 to nowhere. I can still see them indexed if I search for the URL, but otherwise it's like Google doesn't know they exist.  SSL Labs shows an "A" when I run their test and I have no manual actions showing in Webmaster Tools.  This is really frustrating. I don't actually need SSL, but Google finally scared me into it. Now I'm regretting the switch and contemplating going back to non-secured URLs.  Anything else I could have missed? Schengen visa for two subsequent short trips: One visa or two? I will go to France from 17/12/13 – 19/12/13, then I will come back to London. And again I will go back to Portugal and Spain from 26/12/13 to 03/01/14 which I will stay in Spain for the longest period. However, the Spanish consulate told me that I have to request for the visa from the French consulate.  The point is: Do I need to apply for a visa for a single trip two times (from French and Spanish consulate) or a single visa for multiple time (from French consulate). How do I clear keyboard/autocorrect history on the Galaxy s4? I let my younger cousins play on my S4 from time to time, but now I have found that all the words they have used are the first to come up when I use my phone to text. It has gotten quite irritating. Samsung seems to have very hard to find settings compared to my old Sony Ericsson so I cannot find where to get rid of the word history typed onto my phone's keyboard. Proving a sequence defined by a recurrence relation converges How can I prove that this iterative sequence converges to $2$? Can I use the convergence definition?  $$a_{n+1} = \frac{a_n}{2} + \frac{2}{a_n},\qquad  a_0 = 4  $$  Thanks for the help. I know to secure safety it is now not allowed anymore to open apps that were not downloaded from the mac app store.  But surely there is a workaround for this to open an app that you know is 'good' but just isn't in the app store. Preferably allowing only that app and not allowing all downloaded apps to be opened.    How do I open an app that is not downloaded from the app store in mountain lion? ISP blocking port 25 My ISP has started blocking port 25 so I can not send email through my dedicated server any more.   I have several options:   Send email through the SMTP server provided by my ISP. Any problems with this? Setup mu server so that it receives email on another port instead of port 25     No one else sends email through my server so it should be OK. How do I do this on a Linux server? Buy a static client IP - these are not being blocked so far.   Which one is preferable? 16.04 Cannot install anything from Ubuntu Software center Whenever I double click a deb file, it'd be opened in software center. However, when I click "install" button, it'd change to "installing" for a second but then turn back to "install" and nothing happens. It also says "This software comes from a 3rd party and may contain non-free components" at the bottom. I have enabled all the options in Software &amp; Updates and also tried reinstalling software center but nothing helped. Can linear momentum be conserved before and after collision in the presence of an external force? I'm a physics tutor for 11th and 12th grade students. I taught my students that momentum is conserved only when the net external force on the system is zero. But in the books we are following, momentum was conserved in the following cases in spite of presence of an external force:   A body (mass m1) is dropped from a tower (height h) and another body (mass m2) is projected vertically upward with initial velocity u. Find the velocities just after collision. (Gravitational force is the external force) Two bodies projected towards each other on a rough table surface, with all required parameters given asked to find the velocities after collision. (frictional force is the external force) Body explodes in mid air. Momentum is conserved before and after explosion. (Again gravitational force is the external force)   I explained to my students in all these cases though an external force is present it has negligible effect. But I'm not satisfied with my answer.  EDIT: Thank you for the comments and answer. It is clear that contribution of external force to change in momentum is negligible. Can someone do the calculation of taking change in momentum into consideration and showing that it is negligible? Java FileInputStream ObjectInputStream reaches end of file EOF Setup a decal material in cycles I'm trying to setup a image decal in cycles, and I can't figure how to setup the nodes to work fine. Does anyone know the solution? Unable to Telnet into port 25 on CentOS PostFix Server Suppose $\sum a_n$ converges absolutely and $\sum b_n$ converges. Give an example where the Cauchy product does not converge absolutely. A well-supported wireless PCI adapter for Ubuntu 12.04? Occasionally I see an old Meta post that has no status tag (like ), but from the answers it looks like the question is resolved.  Example:  should be  since the answers say HTTP compression actually is enabled.  Is it worth flagging these questions, or is that a waste of time? What are C++ functors and their uses? I keep hearing a lot about functors in C++. Can someone give me an overview as to what they are and in what cases they would be useful? Related questions with over 99 score display incorrectly It is an usual practice that any quantum field theory starts with a suitable Lagrangian density. It has been proved enormously successful. I understand, it automatically ensures valuable symmetries of physics to be preserved. But nevertheless the question about the generality of this approach keeps coming to my mind. My question is how one can be sure that this approach has to be always right and fruitful. Isn't it possible, at least from the mathematical point of view that a future theory of physics does not subscribe to this approach?