Skip to main content

Bug Tracker

Side navigation

#8280 closed bug (invalid)

Opened February 15, 2011 10:22AM UTC

Closed February 15, 2011 11:51AM UTC

The class can not be set as "submit" with one() function

Reported by: Edison Chuang <millionbonus@gmail.com> Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

An input element which in a form element. The class attribute of input element can not be set as "submit" with one() function or it will cause an error "types.split is not a function".

check out the link below (please open firebug):

http://jsfiddle.net/jhND4/

Attachments (0)
Change History (3)

Changed February 15, 2011 10:42AM UTC by Edison Chuang <millionbonus@gmail.com> comment:1

check out the link below (please open firebug): http://jsfiddle.net/jhND4/1

Changed February 15, 2011 10:46AM UTC by Edison Chuang <millionbonus@gmail.com> comment:2

An input element which in a form element. The class attribute of input element can not be set as "submit" with one() function or it will cause an error "types.split is not a function".

check out the link below (please open firebug): http://jsfiddle.net/jhND4/1

Changed February 15, 2011 11:51AM UTC by jitter comment:3

component: unfiledevent
priority: undecidedlow
resolution: → invalid
status: newclosed

Thanks for taking the time to contribute to the jQuery project by writing a bug report and providing a test case!

After checking your report and the test cases I come to the conclusion that your report is invalid. The error you see is caused by your incorrect usage of the .one() method.

Please read http://api.jquery.com/one and check the method signature.