$(document).ready(function(){  var nam="";  $("#sayHello").click(function(){   nam = $("#textBox1").val();   if(nam == ""){    alert("Please let know what your name is.");   }   else if(/  /i.test(nam)){    alert("Try to make sure that your not adding an extra space. It can be any name make one up if that helps.");   }   else{    $("#welcome").html("&lt;p id='hi'&gt;Hello "+ nam +",&lt;/br&gt; How was your day?&lt;/br&gt;" +     "&lt;button id='good'&gt;GOOD&lt;/button&gt; &lt;button id='okay'&gt;okay&lt;/button&gt;" +    " &lt;button id='bad'&gt;Bad&lt;/button&gt;&lt;/p&gt;").show();    $("#inputBox").hide();   }   });   $("#good").click(function(){    $("#goodHit").html("&lt;h3&gt;I'm so happy for you!&lt;/h3&gt;" +     "&lt;p&gt;Here is a quote to help you along your way.&lt;/p&gt;" +     "&lt;blochquote&gt;The good old days are now.&lt;/blochquote&gt;" +     "&lt;figcaption&gt;Tom Clancy&lt;/figcaption&gt;").show();    $("#hi").hide();     });   }); &lt;!doctype html&gt; &lt;html&gt;  &lt;head&gt;    &lt;title&gt;&lt;/title&gt;  &lt;/head&gt;    &lt;body&gt;  &lt;div id="container"&gt;   &lt;div id="inputBox"&gt;   Here is my first text box.      &lt;input id="textBox1" type="text" value=""/&gt;      &lt;button id="sayHello"&gt;Submit&lt;/button&gt;   &lt;/div&gt;      &lt;div id="welcome"&gt;   &lt;/div&gt;      &lt;div id="goodHit"&gt;   &lt;/div&gt;      &lt;/div&gt;  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;  &lt;script type="text/javascript" src="myJQ.js"&gt;&lt;/script&gt;  &lt;/body&gt;  &lt;/html&gt;              In my first .click(function(){..}); I make some buttons and put them into a div. I then hide my div that gave me that ability and show the buttons but when I want to use those buttons nothing is happening. I am new to javascript and jquery please help. here is my code.  $(document).ready(function(){ var nam=""; $("#sayHello").click(function(){     nam = $("#textBox1").val();     //some checks are here but unimportant   Here is where the buttons are made and put into my html.          $("#welcome").html("&lt;p id='hi'&gt;Hello "+ nam +",&lt;/br&gt; How was your day?&lt;/br&gt;" +          "&lt;button id='good'&gt;GOOD&lt;/button&gt; &lt;button id='okay'&gt;okay&lt;/button&gt;" +         " &lt;button id='bad'&gt;Bad&lt;/button&gt;&lt;/p&gt;").show();         $("#inputBox").hide();     }     });    I then try and use one for what I want next to happen.  $("#good").click(function(){         $("#goodHit").html("&lt;h3&gt;I'm so happy for you!&lt;/h3&gt;" +          "&lt;p&gt;Here is a quote to help you along your way.&lt;/p&gt;" +          "&lt;blochquote&gt;The good old days are now.&lt;/blochquote&gt;" +          "&lt;figcaption&gt;Tom Clancy&lt;/figcaption&gt;").show();         $("#hi").hide();  });
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.
I´m posting this because I have some active questions in SO and I´m leaving for the weekend and wont have internet until monday or tuesday.  SO is a very active site and I hate no to answer/thank/comment people who are kind enough to answer my questions.  I think an "away" indicator like an out of office reply would be a really nice feature to add for "politeness" sake. How can I send the stdout of one process to multiple processes using (preferably unnamed) pipes in Unix (or Windows)? I'd like to redirect the stdout of process proc1 to two processes proc2 and proc3:           proc2 -&gt; stdout        /  proc1        \           proc3 -&gt; stdout   I tried   proc1 | (proc2 &amp; proc3)   but it doesn't seem to work, i.e.   echo 123 | (tr 1 a &amp; tr 1 b)   writes   b23   to stdout instead of    a23  b23 Why doesn't Cantor's diagonal argument also apply to natural numbers? What is a proper way to clean a 35mm negative film stripe before scanning?   What chemicals can remove fingerprints, dust that does not come off by blowing, or strains of glue? What type of cloth does minimal damage when rubbing off dirt? Is there a significant difference between "rock" and "stone"? I found this pretty good small research, but I am still concerned about "regular usage" in life, say, when I am talking in the office, especially because of this comment:     To me: Stone is something you can pick up with one hand (for   throwing). A rock takes two hands. Dirac delta function as a limit of sinc function I've had a couple of answers today where the OP indicated via a comment that I solved their problem, but the question wasn't upvoted or accepted.  In both cases the person probably wasn't able to upvote since they were new, but they could have accepted my answer. I felt a little guilty asking them to accept the answer, but since it solved their problem I felt that it would help others who stumbled on the question trying to solve their own problem to know that my solution really was the answer. Is asking the OP to accept your answer when they've said that it solved their problem a reasonable thing to do or does that feel like nagging for reputation? What is the error "Every derived table must have its own alias" in MySQL? Suppose $k$ is a field, $A$ is a $k$-subalgebra of the polynomial ring $k[x]$. Must $A$ be a finitely generated $k$-algebra?   Thanks. I need to prove that $H$ is a maximal normal subgroup of $G$ if and only if $G/H$ is simple.  My proof to the $(\Rightarrow)$ direction seems too much trivial:  Let us assume there exist $A$ so that $A/H\lhd G/H$. Then by definion, $H$ must be normal in $A$. Because $H$ is maximal, we get $H=A$ and therefore $A/H={1}$  Is it correct?  Update:  Now I see that I need to prove that not only $A\lhd H$ but also $A\lhd G$. Assumig I have proven that, is the proof correct? Is it possible to install Python 3.x in 14.04 LTS, or upgrade from Python 2.7.6 to 2.7.8? Finding the dual basis for the space of polynomials of degree $\leq$ 2 Let $V$ be the space of polynomials of degree at most $2$, with basis $\{1,x,x^2 \}$.Find the dual basis to $\{1,x,x^2\}$.   I know that the dual basis of $\{f_1,f_2,f_3\}$ is the basis $\{f_1^*,f_2^*,f_3^*\}$ where $f_i^*(a_1f_1,\ldots,a_3f_3)$ but I'm not sure how to actually compute the dual basis. How to convince stakeholders to invest in proper UX? I'm working on a web app with a team of 5, including me. One database administrator, one project manager, two programmers and me the front-end designer. This project is an internal reporting system.  Anyways, I've struggling a little bit with my team, the DBA and two programmers seem to control our meetings with what Data we are going to pull and the best way to work it into an object model.  And then look to me to design some pretty interface.  Truth is, we've never measured the objectives of this application and what strategy will best meet them from a front-end design/UX standpoint. We've done no wire frames, no planning of content, no planning of pages, no conversations on specific interface components, nothing like that. It seems my team is content with designing and building the entire UX/UI based on a couple of ideas we've spit-balled in meetings.  Forgive me if this sounds too much like a gripe, but I'm at a loss. How do I get my team to understand, we can't just throw the front-end together based on back-end data and the interface HAS to be well planned out and organized? that looks an interesting book; they look good guys That looks an interesting book. ()   ‘Look’ can take an NP for its complement by OALD. Now what I’m wondering about is if a person/people could be a subject in the structure, for instance, “They look good guys.” If we can’t, does it have to be “They look like good guys”? Can a multi-class Bard/Wizard write spells known from Bard, into Wizard spellbook? Find the limit: $\lim_\limits{x\to 0}{\frac{\left(1+x\right)^{1/x}-e}{x}}$ Find the limit: $$\lim_\limits{x\to 0}{\frac{\left(1+x\right)^{1/x}-e}{x}}$$   I have no idea what to do, but I thought that this is the limit of the derivative of $f(x)=\left(1+x\right)^{1/x}$, as $x$ tends to 0. Any help? How do you show that $e^{-1/x^2}$ is differentiable at $0$? Define the real valued function $f(x)$ by $f(x) = e^{-1/x^2}$ if $x \ne 0$ and $0$ if $x = 0$.    How do you show that $e^{-1/x^2}$ is differentiable at $0$? How do you show that this function is infinitely differentiable? If I want to add more RAM to my computer, how can I buy something compatible? What kinds are there? How do I determine which kind my computer will accept and how much I can add? How to remove illegal characters from path and filenames? Is there a font, available to -all- TeX users, that includes a glyph that can be recognized as the Unicode Replacement Character?  I realize I can use XeTeX with a  (or maybe any character not in the font), but I'm interested in using standard pdfTeX with standard LaTeX 2e and a pure ASCII input file.  The glyph typically looks like a filled black diamond with a white question mark inside it:    If no such font is available, what's the best robust strategy for getting such a glyph into a standard pdfTeX document (one whose input file has no Unicode or non-ASCII UTF-8 byte sequences in it) without using XeTeX or similar?  Inserting TikZ commands?  Raw PostScript?  Right now, for lack of a better solution, I'm using a \textbullet, simply because it's the boldest/blackest glyph I can think of, and it's available in most standard fonts.  Creating a custom font with one glyph in it is not really viable, or if it is it's a strategy of last resort, unless (perhaps) it can be done automatically and on the fly when processing the document each time.  (Reposted from the texhax mailing list: ; originally posed by Doug McKenna)