Bug Tracker

Modify

Ticket #6564 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Dup of #3113.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.