Your HTML is invalid (no closing form tags). When is doubt paste your HTML into JSFiddle and look for any red-highlighted elements.
As the ID’ed elements are form
s it is having problems with the page.
If you close the first form element the second one is found fine.
More Related Contents:
- How do I check if an element is hidden in jQuery?
- jQuery. Find all attribute values within/under elements `script or noscript or iframe` that have attribute keys as `src or href` [closed]
- Why does jQuery or a DOM method such as getElementById not find the element?
- How do I set/unset a cookie with jQuery?
- jQuery .live() vs .on() method for adding a click event after loading dynamic html
- Detect element content changes with jQuery
- How can I select an element by name with jQuery?
- If a DOM Element is removed, are its listeners also removed from memory?
- Firing event on DOM attribute change
- jQuery object and DOM element
- How to expose IFrame’s DOM using jQuery?
- Finding line-wraps
- How to get the element clicked (for the whole document)?
- Check if option is selected with jQuery, if not select a default
- How to check if an embedded SVG document is loaded in an html page?
- How to show a spinner while loading an image via JavaScript
- How do I monitor the DOM for changes?
- Can I change an HTML element’s type?
- jQuery events .load(), .ready(), .unload()
- change html text from link with jquery
- Jquery Event Not Triggering for DOM Elements Created after page load [duplicate]
- How to dynamic filter options of with jQuery?
- How to stop event bubbling with jquery live?
- How do I wrap a text selection from window.getSelection().getRangeAt(0) with an html tag?
- Delaying a jquery script until everything else has loaded
- How to properly unload/destroy a VIDEO element
- How to add a onclick event to an element using javascript
- Test if an element can contain text
- How to check null objects in jQuery
- Screen Coordinates of a element, via Javascript