Bug Tracker

Modify

Ticket #7908 (closed enhancement: invalid)

Opened 2 years ago

Last modified 14 months ago

jQuery('#checkbox').click() does not trigger change() event

Reported by: alexvonweiss@… Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

Don't know if this is inteded, but if I click with the mouse on a checkbox (or on a label that is bound with it) the change event triggers.

But if I click the checkbox node with jQuery('#checkbox').click(), the change event does not trigger.

A testcase on jsfiddle:  http://jsfiddle.net/pKN3k/

Change History

comment:1 Changed 2 years ago by snover

  • Status changed from new to closed
  • Resolution set to invalid

Thanks for the report, but this is not a jQuery bug. You are synthetically triggering a click event, not actually performing the same action as a real click. Please use the  jQuery Forum for support requests in the future.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.