Skip to main content

Bug Tracker

Side navigation

#8231 closed bug (duplicate)

Opened February 10, 2011 11:47AM UTC

Closed February 10, 2011 12:56PM UTC

Last modified February 10, 2011 12:56PM UTC

.attr can't change a submit input

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

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).

Attachments (0)
Change History (2)

Changed February 10, 2011 12:56PM UTC by jitter comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → duplicate
status: newclosed

Changed February 10, 2011 12:56PM UTC by jitter comment:2

Duplicate of #8232.