I have a form that can be cloned via jquery. I can submit all the inputs if I use:  &lt;form method="POST" action="insert_mydata.php" id="myForm"&gt;   But if I try to use:  $(function() {     $("#myForm").submit(function() {         $.ajax({             type: "POST",             url: "insrt_mydata.php",             data: $('#myForm').serialize(),             success: function(data) {                 alert(data);                 alert("Successful");             }         });         return false;     }); });   Please help me find out what I am missing. Thank you.  The script I am using to clone the form:  $('.add').click(function(e){     e.preventDefault();     var lastRepeatingGroup = $('.repeatingSection').last();     var cloned = lastRepeatingGroup.clone(true);     cloned.insertAfter(lastRepeatingGroup).find(":text").val("");     resetAttributeNames(cloned); });   How does the two method differ from each other as the latter is working (Data are being inserted the way I want it to be), while the jquery method is not.  Thank you.
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 "was" not "were" in "Nearly £20 was taken from my bank account" I've always said "$100 were taken" not "$100 was taken" because I thought $100 is plural. Could you explain why "was" not "were"? Any other helpful notes about the issue would be appreciated.     Nearly £20 was taken from my bank account What is the maximum number of downvotes a question can have I was just wondering what the maximum number of down votes a question can have before it is removed from StackOverflow. make iframe height dynamic based on content inside- JQUERY/Javascript Change folder permissions and ownership how to hide mesh but keep hair particles What is the difference between object keys with quotes and without quotes? Blog Overflow database error 32 bit or 64 bit OS on a 512 mb VPS? I am planning to rent a VPS service with following basic specification:   512mb of RAM 1 CPU 20gb HDD (4gb of it is swap) Ubuntu 10.10 server   I am able to choose between a 32 bit or 64 bit install of Ubuntu server as the operating system.   My question is would it be better to chose a 32 bit operating system since I will have only 512mb of RAM, rather than using a 64 bit operating system and dealing with the additional overheads?  edit:  I have installed Ubuntu server 10.10 32 bit and 64 bit on VirtualBox. After a minimalistic installation with only ssh server, the 32 bit installation consumes 63mb of RAM when first boot up and 64 bit consumes 85mb of RAM.  After installing and running  daemon, 32 bit consumes 99mb of RAM when first boot up and 64 bit consumes 128mb. Install Java JDK and JRE on Debian 8 I installed Debian 8, I would like to install Java JRE and JDK. I use  and it works.  But, I am afraid because it's a script hosted in a repository. I would like to understand why it doesn't work when I put the extract of  in /usr/java/jre1.8.0_73 directory as . I added the path variable with PATH=/usr/local/jdk1.8.0/bin:$PATH export PATH as explained in  but it doesn't work.  Even if I try to install OpenJDK, the package isn't found. I don't understand why it's so complicated to install Java on Debian; it is very simple on Ubuntu. I would like someone give me step-by-step instructions to install it. A group is generated by two elements of order $2$ is infinite and non-abelian I am a new user of Ubuntu 12.04.   I installed Ubuntu and Windows XP, and I want to use both operating systems. When I restart or boot my PC the GRUB menu does not appear.  How can I solve this problem? How to make a bib entry appear also in the main document I have a reference which has a bib entry and appears in the bibliography. I want to be able to include the entire entry, exactly as it appears in the bibliography, somewhere else in the document.   Is there any way to do that other than to manually write it and format it to look similar? It was nice to discover the option for a room owner to add any user to a room, even if their rep is too low.     ...so I notified the user in question, and as instructed on the next screen, I had them got to chat.stackoverflow.com so that I'd be able to add them.    ...but when they did their part, and I did my part, I got the message:    Obviously both frustrated, the user's next logical question was:  "So I just have ask a couple questions and get someone to upvote them, right?"    Needless to say, we don't want to encourage new users to post questions for the sole purpose of bypassing a frustrating, misdocumented rule.  I realize this will likely quickly get closed since it has at least one  - which hasn't been touched in 5½ years.  However it would be nice if the issue was revisited:  Ideally, it would be cool if RO's did have the option of deciding who had access to the room they "own", but short of that, is it possible to remove the 6 "misleading" words from that page? (This is not homework; a friend shared with me this puzzler and neither of us can figure it out.) Suppose you are in a plane traveling at velocity $v_1$ relative to the ground. The flight attendent pushes a cart of mass, say, $m$, accelerating it from rest to $v_2$, relative to the plane (so relative to the ground, its velocity goes from $v_1$ to $v_1+v_2$). From your perspective, the work done is then $$W = \Delta E = \dfrac{1}{2}mv_2^2$$ but from the perspective of the ground, the work done is $$W = \Delta E = \dfrac{1}{2}m(v_1+v_2)^2 - \dfrac{1}{2}mv_1^2 = \dfrac{1}{2}mv_2^2 + mv_1v_2.$$ Why are these quantities unequal?  I've seen some similar problems, like a body colliding with a wall in different reference frames, but I don't have the physics experience to tell if that question is analogous to this one. So, my apologies if this is a duplicate. :) If $E$ is a connected space, then so is $\overline{E}$. I have to prove that if $E$ is a connected space, then so is $\overline{E}$ (the closure of $E$) a connected space. I tried to prove the contrapositive. So suppose that $\overline{E}$ is not connected in a metric space $X$. This implies there are $A\subset X$ and $B\subset X$ such that $A\cap B=\emptyset$, $A\cap \overline{E}\neq \emptyset$, $B\cap \overline{E}\neq \emptyset$ and $\overline{E}\subset A\cup B$. I will try to prove that this $A$ and $B$ will also work for $E$. Suppose that $A\cap E=\emptyset$ and $B\cap E=\emptyset$, this implies that $A\cup B$ is a subset of the limit points of $E$, because $A\cap \overline{E}\neq \emptyset$ and $B\cap \overline{E}\neq \emptyset$. This contradicts the fact that $\overline{E}\subset A\cup B$, so we have to conclude that $A\cap E\neq \emptyset\neq B\cap E$. Since $E\subset\overline{E}\subset A\cup B$, we have that $E$ is also not connected.  My question is whether my proof is correct, because I have a little bit doubt. If it's not correct, what is the best I can do? Thanks in advance!   Edit1: The definition we use for a connected space $E$ in a metric space $X$ is that if $E$ is connected, then there are no open $A,B\subset X$ such that $A\cap B=\emptyset$, $A\cap E\neq \emptyset\neq B\cap E$ and $E\subset A\cup B$.  Edit2: $A$ and $B$ must be open. A singularity, by the definition I know, is a point in space with infinite of a property such as density.  Density is Mass/Volume.  Since the volume of a singularity is 0, then the density will thus become infinite because Mass/0 = undefined  However, is it possible to have a singularity with a mass of 0? 0/0 is indeterminate, but would it be possible for a singularity to exist even if its mass and volume were zero? I'm using Jabref to manage my Bibliography.  Sometimes, I put directly:     First Author et al.   when adding the article author's name in Jabref.  When compiling my .tex file, LaTeX doesn't recognize the et. al as more names. It takes it as a name/surname.  This is an example of a Bibliography entry in Jabref.  @ARTICLE{Wolf2003,     author = {Wolf, K.et al.},     title = {Compensation mechanism in tumor cell migration: mesenchymal–amoeboid     transition after blocking of pericellular proteolysis},     journal = {J. Cell Biol.},     year = {2003},     volume = {160},     pages = {267–277},    }   This is a .texMWE with the bib entry mentioned:  \documentclass[11pt]{book}   \usepackage{cite}   \bibliographystyle{unsrt} \begin{document}   Here is the bib entry mentioned\cite{Wolf2003}    \bibliography{bibfile}  \end{document}   Here's the output:   How can I solve this problem? For f continuous on $[0,1]$, show that there exist points $\alpha_k$ such that $\sum \limits_{k=1}^n \frac{1}{f'(\alpha_k)} = n $ Suppose that $f$ is continous on $[0,1]$ , differentiable on $(0,1)$ , and $f(0)=0$ and  $f(1)=1$.For every integer $n$ show  that there must exist $n$ distinct points $\alpha_1,\alpha_2\cdots,\alpha_n$ in that interval so that    $\sum \limits_{k=1}^n \frac{1}{f'(\alpha_k)} = n $   Is it theorem or i can show it with basic differentiation knowledge .Please give me hint . Is there any difference between Present Perfect and Present Perfect Continuous? Let's say I'm running a simple server and have accept()ed a connection from a client.  What is the best way to tell when the client has disconnected? Normally, a client is supposed to send a close command, but what if it disconnects manually or loses network connection altogether? How can the server detect or handle this?