Modify ↓
Ticket #6564 (closed bug: duplicate)
Wrong determing of parameter action for form
| Reported by: | betepah | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | attributes | Version: | 1.4.2 |
| Keywords: | form | Cc: | |
| Blocking: | Blocked by: |
Description
If you place inside form input or selectbox with name "action" then code $('#form-id').attr('action', 'new-action'); will work with this element. Not with form attribute.
But $('#form-id').attr('action') will return real form action.
Examples of HTML:
<form action="test-action" id="form-id">
<select name="action">
<option value="1">Option 1</option>
</select>
</form>
<form action="test-action" id="form-id">
<input name="action" type="text">
</form>
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.

Dup of #3113.