Bug Tracker

Opened 10 years ago

Closed 9 years ago

#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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Dup of #3113.

Note: See TracTickets for help on using tickets.