When I add fields using the jQuery .after() function, the show/hide functionality does not work on those fields.  Here's a JSFiddle that demonstrates the issue:    The show/hide functionality works on the first row, but does not work on any rows added after that one. I think the code being written after the page has been loaded might be the issue, but I'm not certain. If that's the case, is there a work around other than hard coding a certain amount of rows?  Here's the code I'm working with:  CSS:  #Table {   font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;   border-collapse:collapse; } #Table td, #Table th {     font-size:1em;     border:1px solid #98bf21;     padding:3px 7px 2px 7px; } #Table th {     font-size:1.4em;     text-align:left;     padding-top:5px;     padding-bottom:4px;     background-color:#A7C942;     color:#fff; } #Table tr.alt td {     color:#000;     background-color:#EAF2D3; }   HTML:  &lt;table style="width: 70%" id="Table" name="Table"&gt;     &lt;tr&gt;         &lt;th&gt;#&lt;/th&gt;         &lt;th&gt;Cause&lt;/th&gt;     &lt;/tr&gt;     &lt;tr&gt;         &lt;td&gt;1&lt;/td&gt;         &lt;td&gt;             &lt;select name='report_cause2' id='report_cause2' class="report_cause"&gt;                 &lt;option value='default'&gt;-&lt;/option&gt;                 &lt;option value='other'&gt;Other, Not Listed&lt;/option&gt;             &lt;/select&gt;             &lt;p class="cause_details"&gt;                 &lt;input type="text" name="cause_detail_info" id="cause_detail_info" placeholder="Type cause here" size="48" maxlength="50" class="textbox required" value="" /&gt;             &lt;/p&gt;         &lt;/td&gt;     &lt;/tr&gt; &lt;/table&gt; &lt;input type="button" id="btnAdd" name="btnAdd" value="Add More" class="button" /&gt;   jQuery:  var count_2 = 5; var table_count2 = 1;  $(document).ready(function () {      $('.cause_details').hide();     $('.report_cause').change(function () {          if ($(this).val() == 'other') {             $(this).parent().find('.cause_details').show();         } else {             $(this).parent().find('.cause_details').hide();         }      });      $('#btnAdd').click(function () {         count_2 = count_2 + 2;         table_count2 = table_count2 + 1;         $('#Table tr:last').after('&lt;tr&gt;&lt;td&gt;' + table_count2 + '&lt;/td&gt;' +             '&lt;td&gt;' +             '&lt;select name=\"report_cause' + count_2 + '\" id=\"report_cause' + count_2 + '\" class=\"report_cause\"&gt;' +             '&lt;option value=\'default\'&gt;-&lt;/option&gt;' +             '&lt;option value=\'other\'&gt;Other, Not Listed&lt;/option&gt;' +             '&lt;/select&gt;' +             '&lt;p class=\"cause_details\"&gt;' +             '&lt;input type=\"text\" name=\"cause_detail_info' + count_2 + '\" id=\"cause_detail_info' + count_2 + '\" placeholder=\"Type cause here\" size=\"48\" maxlength=\"50\" class=\"textbox required\" value=\"\" /&gt;' +             '&lt;/p&gt;' +             '&lt;/td&gt;&lt;/tr&gt;');     }); });
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.
In Oblivion, I had two favorite money-makers:   Dump all my stuff except some basic armor and potions, and raid an oblivion tower. The armor and weapons was worth lots, and selling it in Anvil made a lot of cash fast. Harvest an entire farm's worth of crops, create 'restore fatigue' potions and sell them.   Skyrim seems to spoil this:   Merchants have a max-amount per day/QOD/... instead of per item You can't carry as much (or maybe I have yet to discover the strength/feather spells) Alchemy is a lot harder (most common items go into food recipes now, which don't sell for those prices) On top of that, once a dungeon is cleared, it doesn't respawn - so no 'farming' familiar dungeons?   What are some easy/repeatable money making methods in Skyrim? Which are most efficient effortwise/real-life-time wise? SSL password on apache2 restart I setup wildcard SSL certificate from Godaddy on Apache2. Whenever the server restarts it asks for the passphrase for the SSL certificate's private key.    What's the best way to remove this obstacle to restarts, because when logfile rotation restart occurs in the middle of the night, the server doesn't come back up, and I get an unhappy client call in the morning, as it is a shared server. How do you scrape AJAX pages? Please advise how to scrape AJAX pages. How do you run as a different user from the Start Menu in Windows 10? Running an application as a different user (e.g. domain admin account) from the start menu (by shift + right-clicking the application) used to be an option in Windows 7 &amp; XP.  However, I can't find that option in Windows 10. The workaround seems to be either 1) to find the application in Windows Explorer (shift + right-click) or 2) use runas.exe from the command line.  However, in order to use those workarounds, I have look up the executable name first. It's a bit difficult because I don't have the name of every RSAT tool or executable name memorized.  (e.g. "Active Directory Users and Computers" is dsa.msc, "Routing and Remote Acces" is rrasmgmt.msc)  Is there a simpler way to do this? Highlight elements in the matrix Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. \"File\r\n\" Set the location in iPhone Simulator Let thing of a bird standing still in a box on top of a weighing machine that shows a mass $m_0$. Now, imagine that the bird is flying, still in the same box and the same weighing machine shows a mass $m_1$. As the bird when flying, is applying a force towards the weighing machine, could we deduce that $m_0 = m_1$? I'm asking this question because saying that these masses are equal makes me as uncomfortable as saying that they are not equal and can't figure the right answer. So does $m_0 = m_1$ and why? How to start a GUI software on a remote Linux PC via SSH Sometimes I need to start XMBC media player or other GUI software a one of my PC (small Xubuntu PC used as a media center).  Usually I do this starting a X11vnc server on the remote PC via SSH and than connecting with an Xvnc client to the Xfce desktop.  Is there a way to start a GUI software on a remote Linux PC via SSH?  Thanks! Deriving Chinese Remainder Theorem from gcd Bezout identity Calling acro first use when plural is producing an 's' in the short definition that is wrong I have an acro first use that must be plural, but I am getting an erroneous "s" when I shouldn't be. I'm getting (sIMFs) when it should be (IMFs). See picture and code below. The problem only occurs on the first call and it does so for all my acronyms. Thanks in advance.   \documentclass[12pt,twoside]{report} \usepackage{acro} \DeclareAcronym{IMF}{     short = IMF,     long  = Intrinsic Mode Function,     class = abbrev}  \begin{document} \acp{IMF} \acresetall \ac{IMF} \acp{IMF} \acfp{IMF} \end{document} Suppress a biblatex field in only one of split bibliographies? I am aware of \clearfield, \clearlist etc (cf. ) - but I'm really not sure how to apply it in this context:  Say you have a split bibliography (i.e. several calls to \printbibliography in one document). How can you filter a specific field in a bibliography item - but only in one bibliography (i.e. only in one call to \printbibliography)?  For instance, in the MWE below (compiles with pdflatex test.tex &amp;&amp; biber test &amp;&amp; pdflatex test.tex &amp;&amp; pdflatex test.tex), let's say I'd like to filter urldate (i.e. urldate is not typeset) only in the first bibliography - but for the second one, the original/default behavior should be restored (i.e. urldate is typeset). How to I do that?  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @online{ctan,   title        = {CTAN},   date         = 2006,   url          = {http://www.ctan.org},   subtitle     = {The Comprehensive TeX Archive Network},   urldate      = {2006-10-01},   label        = {CTAN},   langid       = {english},   langidopts   = {variant=american}, } @misc{google,   title        = {Google},   date         = 2007,   url          = {http://www.google.com},   urldate      = {2007-10-01}, } @misc{hotmail,   title        = {Hotmail},   date         = 2008,   url          = {http://www.hotmail.com},   urldate      = {2008-10-01}, } @misc{yahoo,   title        = {Yahoo},   date         = 2009,   url          = {http://www.yahoo.com},   urldate      = {2009-10-01}, } @misc{aol,   title        = {AOL},   date         = 2010,   url          = {http://www.aol.com},   urldate      = {2010-10-01}, } @misc{altavista,   title        = {AltaVista},   date         = 2011,   url          = {http://www.altavista.com},   urldate      = {2011-10-01}, } \end{filecontents*} \usepackage[utf8]{inputenc} \usepackage[backend=biber,defernumbers=true,style=ieee]{biblatex} \bibliography{\jobname}  \begin{document}  \section{Section 1} \begin{refsection}  Citing some stuff here: first \cite{ctan}, then \cite{google}, and finally \cite{hotmail}.  \printbibliography[sorting=none,section=\therefsection,resetnumbers=true]  \end{refsection}  \section{Section 2} \begin{refsection}  Citing some stuff here: first \cite{yahoo}, then \cite{aol}, and finally \cite{altavista}.  \printbibliography[sorting=none,section=\therefsection,resetnumbers=true]  \end{refsection}  \end{document}   Output: Why are light rays able to cross each other? See the image first:   Why are light rays able to cross each other? Air isn't able to. How to randomly subset X% of selected points? What does dot-equals mean in Perl? Using Python, how do I to read/write data in memory like I would with a file? Separator between command list and } Find the infinite sum $\sum_{k=1}^{\infty}\sqrt k - 2\sqrt {k + 1} + \sqrt {k + 2} $ I am facing a problem, where I have to find the partial sum of a sequence/sum and with that, the infinite sum of the sequence.  $\sum_{k=1}^{\infty}\sqrt k - 2\sqrt {k + 1} + \sqrt {k + 2} $   The problem here is that I don't know how to proceed. I would be thankful if someone would steer me in the right direction. How to re-index the values of an array in PHP? How can I use the subdivision surface modifier to create more high poly meshes without ruining sharp edges? For example this mesh  The sphere should be subdivided but the rim of the cylinder should stay the same because it is a sharp edge. This is the result of the subdevision  How can I get sharp edges to not be affected by the sub surf mod?