Skip to main content

Bug Tracker

Side navigation

#5071 closed bug (duplicate)

Opened August 18, 2009 11:27PM UTC

Closed August 20, 2009 02:56AM UTC

Form attribute get/set breaks with same named input in form

Reported by: trmpowell Owned by:
Priority: minor Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Trying to get or set the attribute of a form does not work properly if there is an input in the form with the same name as the attribute trying to be gotten/set.

Example, this works:

$('#testform').attr('action', '').attr('target', 'test');

<form id="testform">

<input type="text" name="act" />


while this doesn't:

$('#testform').attr('action', '').attr('target', 'test');

<form id="testform">

<input type="text" name="action" />


Attachments (0)
Change History (1)

Changed August 20, 2009 02:56AM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #3113.