Skip to main content

Bug Tracker

Side navigation

#11451 closed bug (invalid)

Opened March 08, 2012 03:00AM UTC

Closed March 23, 2012 08:07AM UTC

Bind and Click problem

Reported by: davis@add.digital Owned by: davis@add.digital
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:
Description

$("#RugbySmartQuiz input[type='submit']").bind("click",function(event) {

event.preventDefault();

console.log('test');

});

The above code works in all browsers except IE 9.

Attachments (0)
Change History (3)

Changed March 08, 2012 08:35AM UTC by sindresorhus comment:1

It looks like you want to prevent submitting a form. Try .submit() instead.

Changed March 08, 2012 08:35AM UTC by sindresorhus comment:2

owner: → davis@add.digital
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed March 23, 2012 08:07AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!