Modify ↓
Ticket #6464 (closed bug: worksforme)
setting .attr value on a hidden form field
| Reported by: | n1prodigy | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | unfiled | Version: | 1.4.2 |
| Keywords: | .attr, hidden, form, value | Cc: | |
| Blocking: | Blocked by: |
Description
http://brownwebdesign.com/jquery-attr-value.html
If value is set to "", .attr will not change/update value.
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 for me in both Firefox and IE8. I put this line in just to be sure:
alert($(this).parents('form').children('.hosted_button_id').attr('value'));Works fine in form 1.