Skip to main content

Bug Tracker

Side navigation

#13667 closed bug (notabug)

Opened March 26, 2013 01:46PM UTC

Closed March 28, 2013 12:40AM UTC

Last modified April 23, 2013 04:06PM UTC

Checkbox not checking in 1.9.1: works with 1.8.3

Reported by: gianalfonso.gardini@deltatre.com 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/

Attachments (0)
Change History (6)

Changed March 26, 2013 01:52PM UTC by anonymous comment:1

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

You can close.

Changed March 28, 2013 12:40AM UTC by m_gol comment:2

resolution: → notabug
status: newclosed

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

http://api.jquery.com/attr

Changed April 03, 2013 02:28AM UTC by m_gol comment:3

#13716 is a duplicate of this ticket.

Changed April 05, 2013 05:59PM UTC by m_gol comment:4

#13736 is a duplicate of this ticket.

Changed April 10, 2013 03:07PM UTC by timmywil comment:5

#13762 is a duplicate of this ticket.

Changed April 23, 2013 04:06PM UTC by timmywil comment:6

#13813 is a duplicate of this ticket.