Modify ↓
Ticket #10325 (closed bug: worksforme)
Can't get value of hidden input
| Reported by: | francs@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | attributes | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I have partial html loaded through ajax get request. Partial include <input type="hidden" value="some number" id="jsInput" />
When I try to read value of that hidden input I got empty string when I use $('#jsInput').val() but $('#jsInput').attr('value') works fine.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Seems to work fine. http://jsfiddle.net/timmywil/Dn8gZ/