Set the name
attribute of your form to "theForm"
and your code will work.
More Related Contents:
- How to get the children of the $(this) selector?
- What is the max size of localStorage values?
- Getting the ID of the element that fired an event
- Static variables in JavaScript
- Remove array element based on object property
- How to detect my browser version and operating system using JavaScript?
- Why doesn’t equality check work with arrays [duplicate]
- What is “x && foo()”?
- How to read the post request parameters using JavaScript
- Remove duplicate values from JS array [duplicate]
- How do I post form data with fetch api?
- Test if a data exist in Firebase
- What does (function (x,y){…})(a,b); mean in JavaScript?
- How to access CSS generated content with JavaScript
- How can I access constants in the lib/constants.js file in Meteor?
- Pass Javascript variable to PHP via ajax
- Difference between obtrusive and unobtrusive javascript
- How can I send the “&” (ampersand) character via AJAX?
- Leaflet- marker click event works fine but methods of the class are undefined in the callback function
- Switch Case not showing correct results
- Chrome Extension: Get Page Variables in Content Script
- Is creating JS object with Object.create(null) the same as {}?
- How can I return a variable from a $.getJSON function
- setTimeout callback argument
- How do I recover the “text” from the page originating the alert, esp **after** the human user has *clicked* [dismiss] on the page’s **alert**?
- Fullpage.js. Adding a scroll delay
- What JavaScript libraries are known to use the global dollar sign: window.$?
- How to create new instance of an extended class of custom elements
- Javascript Tilde & Two’s complement
- Regular expression for number with length of 4, 5 or 6