I have encountered an issue with my code, while developing a project. I dynamically add a login form to a certain div in the DOM-Tree. It is all nice and fine, all elements are generated and all attributes are added, but I cannot access either of the fields, let alone submit it. Can somebody please spot the issue within? loginArea.click((e) =&gt; {     e.preventDefault();      loginArea         .empty()         .append(             $(document.createElement('form'))                 .attr({id: 'user__loginform'})                 .append(                     $(document.createElement('p'))                     .addClass('user__action')                     .text('Please enter your credentials!')                 )                 .append(                     $(document.createElement('input'))                     .prop({                         type: 'email',                         id: 'login_mail',                     })                     .attr({                         placeholder: 'Please enter a valid e-mail adress!',                         required: true,                         form: 'user__loginform'                     })                 )                 .append(                     $(document.createElement('input'))                     .prop({                         type: 'text',                         id: 'login_pw',                     })                     .attr({                         placeholder: 'Please enter a password!',                         minglength: 9,                         maxlength: 16,                         required: true,                         form: 'user__loginform'                     })                 )                 .append(                     $(document.createElement('input'))                     .attr({                         form: 'user__loginform',                         type: 'submit',                         value: 'Login'                     })                 )         ) });  Thank you a lot in advance EDIT: Incorporating the input I have received, I have shortened the function to this, and added .off() at the end. This seems to solve the issue I had, as for now the dynamically generated input can be filled out. signupArea.click((e) =&gt; {     e.preventDefault();     let formTemplate = `         &lt;div id=&quot;form-template&quot; class=&quot;user__action&quot;&gt;             &lt;form id=&quot;user__registform&quot;&gt;                 &lt;p&gt;Please enter your preferred credentials!&lt;/p&gt;                 &lt;input type=&quot;email&quot; id=&quot;regist_mail&quot; placeholder=&quot;Please enter a valid e-mail!&quot; required=&quot;required&quot; form=&quot;user__registform&quot;&gt;                 &lt;input type=&quot;text&quot; id=&quot;regist_pw&quot; placeholder=&quot;Please enter a password!&quot; minglength=&quot;9&quot; maxlength=&quot;16&quot; required=&quot;required&quot; form=&quot;user__registform&quot;&gt;                 &lt;input form=&quot;user__registform&quot; type=&quot;submit&quot; value=&quot;Register&quot; class=&quot;user__regist--submit&quot;&gt;             &lt;/form&gt;         &lt;/div&gt;     `;     signupArea.html(formTemplate);     signupArea.off(); });
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've a friend that booked a round-trip journey. He booked A-to-B and B-to-A. Somehow he needed to be earlier at location B, so he took a train and did not take the flight from A to B.  When he went to the airport to take the "back home" flight (B-to-A), he was informed that his ticket was canceled because he did not take the A-to-B flight. They canceled the ticket and sold it to someone else.  Is this normal? The company said it was their right to do so, and he could not get the flight back. The company was Iberia. Cleaning Circuits with Compressed Air I've been arguing with a colleague whether it is a sensible solution to clean dusty PCBs with compressed air. While I think this is the best solution (nothing touches the PCB), he claimed that spraying off the dust can cause ESD, because the charges that may have accumulated in the dust win't bleed off in the process (and it's better to leave everything as it is). I'm not really convinced by this argument and my (limited) knowledge of ESD production doesn't help getting peace of mind in this matter. What is your input? I want to use Windows 7 or 8 but I don't know to install a software like VirtualBox which we have to do with the use of terminal. I don't want to use Windows as a main OS so I want to use it in VirtualBox. Can you tell me how to install downloaded files in Ubuntu. I once installed java runtime but don't know the meaning of the lines which I have written in terminal, I just did as the blog posted by a man says. Where can I find a repository for older unsupported releases? I remember I saw a apt mirror somewhere containing older distributions but I cannot find it anymore. Does anybody know where to find it? How can I bypass Activation Lock? I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one? I have two Ubuntu Software Centers, one can be opened, another one can't Mothballs in the pantry: is it safe to keep food there? My roommate put some mothballs in the pantry and when I came home and saw them, I took them out.  They were probably only there for a few hours, but is it safe to store food in there?  Should I throw out the food that was in there together with the mothballs?  I'm leaning towards 'when in doubt throw it out' but I'm unsure whether that is overkill in this case. Seeing through objects in Game engine How do I transfer my Pokemon Go account to another device (Android to Android)? I was having trouble playing the game on my android so I downloaded it to my wife's phone (Galaxy S6). I read some posts on how to get it running on my android and it worked but, my level 7 account is on my wife's phone.  How do I get it back to my android? When I sign out and back in it doesn't ask for any sign in info. I've tried deleting the app's data and even uninstalling and re-installing, but it still doesn't ask for sign-in info. R stem and leaf values How to make a stem and leaf plot with the following data in "R":  1717 1719 1645 3739 3024 3664 3830 2991 2430 2730 3469 5086 2119 3021 3292 2844 3426 2067 3215 2767 3124 2573 2840 2449 2584 1505 1390 1645 2497 3466 3228 3192  The only way to get a reasonable amount of stems is to make the stem the first digit in each number and the leaves will all be 3 digit numbers. I am not able to split the data in this way, R represents the stem with 1 digit but round my numbers  so 2584 is shown as 2| 5 (3 decimals to the right) which would be 2500. How do I adjust my stem and leaf numbers? Why does everything spin? The origin of spin is some what a puzzle to me, everything spin from galaxies to planets to weather to electrons.  Where has all the angular momentum come from? Why is it so natural?  I was also thinking do photons spin? we always think of the wave as a standard 2d sin wave but could this rotate in 3d? What implications would this have?   And what about spacetime how does all the spinning effect?  This has always been avoided in all lectures and classes I ever went to. I had booked a ticket for travel through Indian Railways using IRCTC and got a confirmed ticket. While booking, I forgot to mention the details of a one year old child who will also be traveling.     Will it create any problem while boarding the train? Getting "experimental" true displacement to work Make Firefox save new bookmarks in the Bookmarks Menu (not Other Bookmarks) Recently, Firefox has changed the default folder for newly created bookmarks (using Ctrl+D) from the Bookmarks Menu to "Other Bookmarks".  Is there some way to change that back? Or some alternate method instead of Ctrl+D?  EDIT  A native way to do this (without an add-on) would be best. Boxplot interpretation: is it correct that a boxplot is missing a whisker? I have a data set that has customerID and daily visits. This dataset records the number of times customers visited the site in a day.   customerID   TotalVisits  1            6  2            17  3            20  4            25   Just to explore the data further, I tried plotting the TotalVisits values in a box plot. The plot doesn't seem to have a lower whisker. q1=1 and there are no values between q1 and  q1-1.5(IQR). The plot has q1, q2 and q3. The minimum value and q1 are the same.   Is this why the boxplot doesn't have the lower whisker? Could you please help me with the interpretation? Is it correct to draw a boxplot without any whiskers?  [I am new to the site and I am not able to post the image.] What is the joint distribution of $Z=\min(X,Y)$ and $I_{Z=X}$? How to make \hl (highlighting) to automatically place incompatible commands in \mbox? The soul package provides a useful command \hl for highlighting text. However, \cite, \ref, and some other commands (maybe equations too) must be placed within an \mbox in order for \hl to work properly.  Is there any way to make this automatic? Meaning that to modify \hl (and other commands provided by soul) to put everything except plain text in an \mbox?  \documentclass[12pt]{article} \usepackage{soul} \begin{document}  \section{1}\label{sec} This is to show that \textbackslash{hl} fails to highlight texts containing citations or reference!  \hl{ This is one line containing a citation \mbox{\cite{}}}  \hl{ This is one line containing a reference \mbox{\ref{sec}}}   \end{document} SSH welcome message on 17.04 shows notice about 12.04 I just did a do-release-upgrade going from Ubuntu 16.04 to 17.04. However, now when I login via SSH I have the following message   Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-20-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage  Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server  0 packages can be updated. 0 updates are security updates.   My question is, how can I remove the   Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server   it wasn't there prior the release-upgrade  I checked and I am on Zesty  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 17.04 Release:    17.04 Codename:   zesty   My question is not, how can I remove this message, this I found. My question is more, is there a reason why this appears after a release-upgrade? Is this message something generic not taking into consideration the current version of Ubuntu? Or maybe my system is not updated properly? How SELECT column does not list in GROUP BY clause The query:  select year,sum(mark),sum(maxmark)  from table1  group by parameterno   yields an error message:     Column 'table1.year' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. Don't we have single sign-on for all Stack Exchange sites? I would like to use many sites in the Stack Exchange network, but I need to login to each site separately. Though it's easy, can't we solve this problem? I know each site has a different url :( but is there any way?