Bug Tracker

Modify

Ticket #10166 (closed bug: duplicate)

Opened 21 months ago

Last modified 18 months ago

click() on a checkbox still doesn't appear checked(or unchecked) before the handlers call

Reported by: anonymous Owned by: anonymous
Priority: low Milestone: None
Component: event Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

in windows 7 using FF 5.0 & IE 8.0 a $(checkbox).click() still calls all the handlers before changing status. this doesn't correctly simulate the 'mouse click' call sequence. can you confirm? if wrong, I apologize. Many thanks.

Change History

comment:1 Changed 21 months ago by anonymous

ie: var checkbox = ...; $(checkbox).click (function () {alert((checkbox.checked)?"true":"false");}); $(checkbox).click(); if i'm right this should alert "false" with the checkbox still unchecked, then check it.

comment:2 Changed 21 months ago by rwaldron

  • Owner set to anonymous
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to event

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.

comment:3 Changed 21 months ago by trac-o-bot

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

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!

comment:4 Changed 18 months ago by dmethvin

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:5 Changed 18 months ago by dmethvin

  • Status changed from reopened to closed
  • Resolution set to duplicate

comment:6 Changed 18 months ago by dmethvin

Duplicate of #3827.

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.