Skip to main content

Bug Tracker

Side navigation

#10434 closed bug (duplicate)

Opened October 06, 2011 11:01AM UTC

Closed October 06, 2011 01:25PM UTC

Last modified October 14, 2011 03:01PM UTC

checkbox checked bug

Reported by: taila Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:
Description

since 1.6.3

$('#checkbox').attr("checked", true);

#checkbox is checked.

click #checkbox, then #checkbox is unchecked.

But that #checkbox OnClick Events

var checked = $('#checkbox').attr("checked");

// checked == "checked"

Attachments (0)
Change History (3)

Changed October 06, 2011 01:25PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Use .prop() for getting the dynamic state of a checkbox, or use $('#checkbox')[0].checked.

Changed October 06, 2011 01:25PM UTC by dmethvin comment:2

Duplicate of #10278.

Changed October 14, 2011 03:01PM UTC by dmethvin comment:3

#10496 is a duplicate of this ticket.