I created this php for administrators to search for users and allow administrators to edit their details when they click the button. When the user is not using the search function, the "Update" button will work. After the user types the search function, it will display all relevant fields according to the user input, but after the user uses the search function, the "Update" button will no longer work. Thank you.  &lt;?php include '_base.php'; $p-&gt;title = 'List of Users';   $nameorid = $p-&gt;get('nameorid');  $stm = $db-&gt;prepare('SELECT * FROM user WHERE id LIKE ? OR `name` LIKE ? OR email LIKE ?'); $stm-&gt;execute(["%$nameorid%","%$nameorid%","%$nameorid%"]); $arr = $stm-&gt;fetchAll();  // output ----------------------------------------------------------------------------------------- include '_head.php'; ?&gt;  &lt;h1 margin-left:0px;&gt;List Of Users&lt;/h1&gt;  &lt;?= $h-&gt;label('User ID / Name / Email ') ?&gt; &lt;?= $h-&gt;text('nameorid', null, 50, 'autofocus') ?&gt;   &lt;div id="target"&gt;   &lt;p&gt;&lt;?= count($arr) ?&gt; record(s)&lt;/p&gt;  &lt;table class="utable"&gt; &lt;thead&gt;         &lt;tr&gt;             &lt;th&gt;Id&lt;/th&gt;             &lt;th&gt;Name&lt;/th&gt;             &lt;th&gt;Gender&lt;/th&gt;             &lt;th&gt;Group&lt;/th&gt;             &lt;th&gt;&lt;/th&gt;         &lt;/tr&gt;     &lt;/thead&gt;     &lt;tbody&gt;         &lt;?php             foreach ($arr as $s) {                 echo "                     &lt;tr&gt;                         &lt;td&gt;$s-&gt;id&lt;/td&gt;                         &lt;td&gt;$s-&gt;name&lt;/td&gt;                         &lt;td&gt;$s-&gt;email&lt;/td&gt;                         &lt;td&gt;$s-&gt;role&lt;/td&gt;                         &lt;td&gt;                         &lt;button id='normalBtn' data-get='/updateUser.php?id=$s-&gt;id&amp;role=$s-&gt;role'&gt;Update&lt;/button&gt;                         &lt;/td&gt;                     &lt;/tr&gt;                 ";             }         ?&gt;     &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt;  &lt;script&gt;      let nameorid;      $('#nameorid').on('input', function (e) {         nameorid = $(this).val().trim();          let param = $.param({             nameorid: nameorid         });          let url = `/userList.php?${param} #target`;          $('#target').load(url, highlight);     });      function highlight(){         if (nameorid == '') return;           let re = new RegExp(escapeRegExp(nameorid), 'gi');           $('td:nth-child(2)').each(function () {              let h = $(this).html().replace(re, '&lt;mark&gt;$&amp;&lt;/mark&gt;');             $(this).html(h);         });          $('td:nth-child(1)').each(function () {              let h = $(this).html().replace(re, '&lt;mark&gt;$&amp;&lt;/mark&gt;');             $(this).html(h);         });          $('td:nth-child(3)').each(function () {              let h = $(this).html().replace(re, '&lt;mark&gt;$&amp;&lt;/mark&gt;');             $(this).html(h);         });     } &lt;/script&gt;   &lt;?php include '_footer.php';
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.
Why doesn't hydrogen gas exist in Earth's atmosphere? The root mean square velocity of hydrogen gas at room temperature is: Gas constant: $R=8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}$ Molar mass of hydrogen gas: $M=2.02\times10^{-3}\ \mathrm{kg/mol}$ $$\begin{align} v &amp;= \left(\frac{3\times8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}\times300}{2.02\times10^{-3}\ \mathrm{kg/mol}}\right)^{\frac12}\\ &amp;= 3356.8377\ \mathrm{m/s}\\ &amp;= 3.356\ \mathrm{km/s} \end{align}$$ The escape speed of Earth is $11.2\ \mathrm{km/s}$, which is larger than the root mean square velocity of hydrogen gas. But still, hydrogen gas doesn't exist in Earth's atmosphere. Why? Have I made any mistakes in my calculations? The (countably infinite) wedge sum of circles is quotient of  disjoint countable union of circles $\amalg S_i$, with points $x_i\in S_i$ identified to a single point, while the infinite earring H is the topological space defined by the union of circles in the Euclidean plane $\mathbb{R}^2$ with center $(1/n, 0)$ and radius $1/n$ for $n = 1, 2, 3, ...$. In the definition of countably infinite wedge sum of circles, it is not specified the size of circles, the points which to be identified to a single point etc. So we can take disjoint union of circles of radius $1/n$ and identify a point from each to a common single point to get the infinite earring. I couldn't understood the difference between these two topological spaces. Can one explain more precisely the difference between these two spaces? ... namely that if $n &gt; 1$ and $(n − 1)!\equiv−1\pmod{n}$, then $n$ is prime.  This is for a number theory class I'm in at Penn State. My idea is to follow accordingly, but I can't get it concretely..  Reason by contradiction, suppose that $n$ is not prime.   Then $n = ab$, where $1 &lt; a, b &lt; n$  In particular $(n-1)! = ai$ for some $i\in\Bbb{Z}$. $\\$ If $(n-1)! = nj - 1$ for some $j\in\Bbb{Z}$ then it follows that a probably doesn't divide $-1$? When I use the , do I choose the monster to distract (and then the next ally to attack gets advantage) or do I choose the ally and the monster (so that only his attack against that target gets advantage)? Or something else?  Help [...] Alternatively, you can aid a friendly creature in attacking a creature within 5 feet of you. You feint, distract the target, or in some other way team up to make your ally’s attack more effective. If your ally attacks the target before your next turn, the first attack roll is made with advantage. Can I install Microsoft Office? If so, how? How to make clickable links and cross-references in pdfs produced by LaTeX? How can I make things link url references, my index, table of contents, and cross references clickable links in documents produced by LaTeX? I generally use pdflatex to produce my documents. What is potential energy truly? "Unable to install GRUB in /dev/sda" when installing GRUB I recently bought a shiny new Lenovo Yoga 2 Pro and I want to dual boot it with Ubuntu for studying purposes. Its built-in OS is Windows 8.1 and it has a 256GB SSD.  I've made a separate 90GB partition just for Ubuntu and a live USB to install it.  The first time everything seemed to work great, I solved the wifi issued by blacklisting ideapad_laptop, the installation went flawlessly and Ubuntu worked fine.  When I got up the next morning and turned on my laptop it booted into Windows right away without ever showing the GRUB menu. So I tried to reset, and checked my partitions with the Disk Manager and everything looked fine. Since I couldn't find a solution online I went ahead and formatted the partition to try and install again. This time and every time since, the installation was aborted and I got a fatal error saying:  Unable to install GRUB in /dev/sda Executing `grub-install /dev/sda` failed. This is a fatal error.   Can anyone please suggest a solution to this problem? If any further information is needed I would be happy to provide it. Thanks.  When installing I get the following in details:  ubuntu kernel: [ 1946.372741] FAT-fs (sda2): error, fat_get_cluster: invalid cluster chain (i_pos 0). ubuntu grub-installer: error: Running 'grub-install --force failed. How do I display 2 sections side-by-side? What is the physics of a spinning coin? When we spin a coin on a table, we observe 2 things:   It slows down and stops after sometime. It does not stay at just one point on the table but its point of contact with table changes with time.   I was trying to explain quantitatively this but I am stuck at how to take frictional torques into account. Any help will be appreciated. SSMS wont give up file associations Delete from uitableview + write to plist not working Don't you think people need to know what they did wrong exactly so they can fix it and get unbanned from asking questions or posting answers? Where do I get the key for the first house? I've 'completed' the game, but didn't find the key for the first house. (I got the one for the arcade machine house). Where can I find it? Let $G(r, n)$ be the Grassmannian of the set of all $r$-planes in a $n$-dim vector space. How to show that the cohomology of a Grassmannian has a basis consisting of the equivalent classes represented by Schubert cycles? I am confused since I don't know how to compute the cohomology of a variety (how to construct the co-chain complex). I am really appreciate if you can compute the cohomology of, for example, $G(2,4)$ and show that it has a basis consisting of the equivalent classes represented by Schubert cycles. Evolution of the (phenotypic) facial features of the indigenous people of (west/central) Africa I am not even remotely an expert in this field; I just got curious, so help me.   First of all, let us remove all human sentimental attributes from this question (such as connotations of  or emotional reactions thereof) and ask it from a purely scientific point of view. The typical facial feature of a West/Central African person (the so-called ) exhibits a wide nose, a lack of nasal bridge projection (similar to many Asian noses) and a prognathous skull shape that resembles more closely to our ancestor Homo Heidelbergensis than many other indigenous phenotypes from other parts of the world do.  I agree that this claim sounds anecdotal, and is certainly not true of all Africans (for example, Ethiopians), but one cannot dismiss it simply on grounds of ethical policing. I cannot help but notice that many of my African friends remind me of our shared ancestry (with no disrespect meant whatsoever), as is clear from the photographs below, one of a supposed Homo Heidelbergensis and one of a random African Homo Sapiens of today.     My question is the following. What is the reason behind this seeming resemblance? Is this appearance an illusion and possibly a construct of a prejudiced mind, or does this have a valid scientific answer? For example, are most Africans closer to our ancestors than the rest of humanity is? How does evolution answer this question?  Thank you for your help. Guinier regime for form factor Why is it such a good idea to plot the logarithm of the form factor vs $Q^2$ in . It seems arbitrary to me. 'Possible duplicate' comment not appearing for questions with deleted comments containing the link I posted a comment to a duplicate question on . But I decided to delete it. Afterwards I voted as duplicate and thought a comment would be generated like     possible duplicate of ...   But it didn't. My guess is that the duplicate-comment won't be generated if a comment exists with that link, even if deleted. 1.35 V RAM in a 1.5 V system - Will it fry or overclock? The general question is: When installing low voltage RAM in a board that outputs a higher voltage to the memory module, will this fry the RAM or will it be like overclocking it?  My specific case is: I have the Alienware m17xR3 laptop with a 2630QM Sandy Bridge board. Currently, I have the stock 1.5 V modules and when I check the overclocking options in my bios, the RAM voltage option ranges from 1.5 - 1.65 V. Is this simply because the bios recognizes that these are the values which my current RAM support and thus they will change when I install 1.35 V RAM or will I have to run the 1.35 V sticks at minimum 1.5 V?  If the case is the latter, would I fry my 1.35 V sticks? Or would they become automatically overclocked and get tighter timings with a higher voltage? Or both? Or neither? I'm a bit lost :p Cool Text Highlighting in LaTeX LaTeX has soul. ConTeXt, of course, , where you can put sweet hightligher under your text for free!    In the pictured example, you can see highlights that not only highlight, but that do it with cool edges that look so good, you can smell fumes! The fearless author says he'll show how that was done in another post; this one shows only how to lay down a straight, yellow box. But, it is possible to do word-wrapped highlighting with cool-shapped boxes within ConTeXt, presumably.  The trouble for me is that getting into the ConTeXt world is steep climb right now, given the state of documentation and the flux of changes, so I need to continue with LaTeX. But the real problem is that now I can't live without the Organic-Looking Highlights of Awesomeness in that picture!  As I said, Non-Organic-Looking Highlights of the Ordinary are easy with the soul package:  \hl{Some awesome text that word wraps fine.}   It just taunts me on the page with its straight lines. So, if I sacrifice word wrapping, I can use PGF/TiKz and create the following macro:  \newcommand\hl[1]{%     \tikz[baseline,%       decoration={random steps,amplitude=1pt,segment length=15pt},%       outer sep=-15pt, inner sep = 0pt%     ]%    \node[decorate,rectangle,fill=navcolor,anchor=text]{#1\xspace};% }%   Which creates something like this:    Now, my color is too dark and my randomness needs adjusting, but you see that a similar effect could be achieved.  My trouble is that I don't understand TeX enough to dig into the Soul package and add the TiKz/PGF goodness that it so sorely needs. So, I leave it to you guys. Anyone want to tackle this?   Or is it yet another piece of fruit, just a touch out of reach, that shall have to wait until ConTeXt settles down?