Bug Tracker

Opened 11 years ago

Last modified 10 years ago

#8232 closed bug

.attr can't change a submit input — at Initial Version

Reported by: remysharp Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.5
Keywords: Cc:
Blocked by: Blocking:


Changing a submit input element to a button (or perhaps another type) causes jQuery to throw a fatal exception:

$('input[type=submit]').attr('type', 'button'); // throws fatal

Working example: http://jsbin.com/arida/2

Note that it throws an exception (which is why I've wrapped them in a try/catch for the example).

Change History (0)

Note: See TracTickets for help on using tickets.