Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#13667 closed bug (notabug)

Checkbox not checking in 1.9.1: works with 1.8.3

Reported by: gianalfonso.gardini@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

When trying to set checkbox as "checked" inside an event, jQuery 1.9.1 fails. It was working in 1.8.3

See samples below. Click on "all" checkbox twice to see bug.

Jquery 1.9.1: doesn't work http://jsfiddle.net/Cdqrh/4/

Jquery 1.8.3: works http://jsfiddle.net/Cdqrh/3/

Change History (6)

comment:1 Changed 7 years ago by anonymous

Found solution: in 1.9.1 must use "prop" instead of "attr" method. You can close.

comment:2 Changed 7 years ago by m_gol

Resolution: notabug
Status: newclosed

"the .prop() method provides a way to explicitly retrieve property values, while .attr() retrieves attributes."

http://api.jquery.com/attr

comment:3 Changed 7 years ago by m_gol

#13716 is a duplicate of this ticket.

comment:4 Changed 7 years ago by m_gol

#13736 is a duplicate of this ticket.

comment:5 Changed 7 years ago by timmywil

#13762 is a duplicate of this ticket.

comment:6 Changed 7 years ago by timmywil

#13813 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.