I'm making a sign up system. After user successfully sign up, form->ajax->php, ajax adds html to a premade empty message div.  $("#register_form").submit(function(event) {     var $data = $(this).serialize();     var result = "";      $.ajax({         cache   : false,         type    : "POST",         url     : "php/register.php",         data    : $data,         success : function(response) {               if(response === "OK"){                   result  = "&lt;div class='alert alert-success'&gt;You have successfully registered!&lt;br/&gt;";                   result +=     "Please check your mailbox for the activation link. It may take a few minutes.&lt;br/&gt;";                   result +=     "&lt;a id='resend'&gt;Resend Confirmation Email&lt;/a&gt;";                   result += "&lt;/div&gt;";                   $("#register_form").slideUp(500);               }               else{                   result = '&lt;div class="alert alert-danger"&gt;' + response + '&lt;/div&gt;';               }                $("#register_response").html(result);               $("#register_response").slideDown(500);         }     });      event.preventDefault(); });   I put the 'resend confirmation email' in there, just an empty link waiting to be clicked on. But it seems the sign up page's javascript (which is the same file the above script is in, I did $("#resend").click(...) ) doesn't apply to it. Where do I put the javascript so that this will work?  Also, if this is not a good way to add html using javascript, what's a good way to achieve 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.
PHP Codes are displaying in HTML What does it mean when Git says 'rewrite' or 'rename' in a commit message? How can I install the latest Netbeans? In Ubuntu Software Center the Netbeans version is netbeans 7.0.1+dfsg1-5ubuntu2 but Netbeans 8.1 is available in the Netbeans website. Traveling to the US with new passport, visa on the old one datatool with longtable Let $\sim$ be the equivalence relation on $S_1 \times I$ given by $(x,t)\sim(y,s)$ if and only if $xt=ys$ where $I=[0,1]$  How do I prove that $(S_1 \times I)/\sim$ is homeomorphic to the unit disk $D^2$ with the induced topology? Supremum and Infimum Let $A$ be a nonempty set of real numbers which is bounded below. Let $-A$ be the set of all numbers $-x$, where $x \in A$. Prove that $\inf A = -\sup(-A)$.   We know that $-A$ is bounded above. Hence $\sup(-A)$ exists. So to proceed, one would show that $\inf A \leq -\sup(-A)$ and $\inf A \geq -\sup(-A)$? Or $-\inf A &gt; \sup(-A)$ and $-\inf A &lt; \sup(-A)$.  I get the sense that one can use the following fact as well: (i) Let $\alpha = \sup S$. If $\beta &lt; \alpha$ then $\beta$ is not an upper bound for $S$. exponentiation of cardinal number How to animate noise texture "seed"? It's possible to animate a change noise texture by animating the texture coordinates with a mapping node or by animating the texture space, however this only works on one axis at a time (on the other axes the texture will appear to be sliding across the object's surface).  For example, the top face has the desired effect but the other faces appear to be moving/sliding upwards:    Even with all three axes location and rotation animated it still appears to be sliding rather than statically changing.    Is there some way to make each face appear like the top face in the first gif but still be seamlessly blended with the other faces? This should work for other shapes as well.  In other words, I'm looking for a way to animate the "seed" of the texture. Concatenate several columns into one in Google Sheets Inequality involving the sup of a function and its first and second derivatives Let $f:\mathbb{R} \to \mathbb{R}$ be a twice differentiable function. And let  $$\eqalign{   &amp; M_0  = \sup \left|f(x)\right|  \cr                &amp; M_1  = \sup \left|\frac{d}{dx} f(x) \right|  \cr                &amp; M_2  = \sup \left|\frac{d^2}{dx^2} f(x) \right| \cr }$$ Prove that  $$M_1 ^2  \leqslant 4M_0 M_2$$ I can not think how I can relate these values ​​in some inequality )= "Which" vs. "what" — what's the difference and when should you use one or the other? Most of the time one or the other feels better, but every so often, "which" vs. "what" trips me up.   So, what's the exact difference and when should you use one or the other? Proving a limit of a trigonometric function: $\lim_{x \to 2/\pi}\lfloor \sin \frac{1}{x} \rfloor=0$ $$\lim_{x \to \frac{2}{\pi}}\lfloor \sin \frac{1}{x} \rfloor=0$$    I need to prove the limit of this using the $\epsilon - \delta $ way but I don't know how to find $\delta$ when I'm given a trigonometric function I know only how to do it with polynomial functions Upgrade to the latest PHP version in Ubuntu I am using  in my server and NextCloud informs me that:     You are currently running PHP 7.0.32-0ubuntu0.16.04.1. Upgrade your   PHP version to take advantage of performance and security updates   provided by the PHP Group as soon as your distribution supports it.   So, I tried to upgrade me OS (Ubuntu 16.04), by executing:  apt-get update  apt-get dist-update  Then I restarted the server and I re-executed the above commands. After all these, when I connect from terminal I am getting:  Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-83-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage  0 packages can be updated. 0 updates are security updates.   and my PHP version is still PHP 7.0.32-0ubuntu0.16.04.1 (cli) ( NTS ).  This means that PHP 7.0.32 is the latest possible version that I can install in ubuntu 16.04; how I can continue this limit resolution?  The limit is:   $$ \lim_{n \to \infty}{\sqrt[n]{\frac{n!}{n^n}}} $$  This is that I have done:  I apply this test: $ \lim_{n \to \infty}{\sqrt[n]{a_n}} = \frac{a_{n+1}}{a_n} $  Operating and simplifying I arrive to this point: $$ \lim_{n \to \infty}{\frac{n^n}{(n+1)^n}} $$  I've done something wrong? Thanks! Is a continuous function $ f\colon(0,\infty)\to R$, such that $f(x)\leq f(nx)$ increasing? Using "that" and "this" interchangeably ls command very slow after deletion of thousand files on a directory I have a dir under /home/myuser dir which an application stores and deletes millions of temporary files. When I do ls on this dir (now it only has a hundred files only) it is too slow (actually I do not get any output for many minutes). After some google search and doing:  ls -dl ~/mydir/   I get this  drwxrwxrwx 2 myuser myuser 160108544 Oct 12 11:31 /home/myuser/mydir/   which basically means I have to re-index directory entries for this directory (if I understood correctly). How do I do force such a re-indexing on this dir? How can I retain HTML form field values in JSP after submitting form to Servlet? I'm asked to used induction to prove Bernoulli's Inequality: If $1+x&gt;0$, then $(1+x)^n\geq 1+nx$ for all $n\in\mathbb{N}$. This what I have so far:  Let $n=1$. Then $1+x\geq 1+x$. This is true. Now assume that the proposed inequality holds for some arbitrary $k$, namely that $$1+x&gt;0\implies (1+x)^k\geq 1+kx,~\forall~k\in\mathbb{N}\setminus\{1\}$$ is true. We want to show that the proposed inequality holds for $k+1$. Thus multiplication of $(1+x)$ on each side of the above inequality produces the following result: $$(1+x)(1+x)^k\geq (1+kx)(1+x)\implies (1+x)^{k+1}\geq 1+x+kx+kx^2\cdots\cdots\cdots$$  I'm not sure where to go from here.