Skip to main content

Bug Tracker

Side navigation

#13433 closed bug (notabug)

Opened February 11, 2013 02:15PM UTC

Closed February 11, 2013 02:43PM UTC

$('#selector').checked for element does not work

Reported by: Owned by:
Priority: undecided Milestone: None
Component: attributes Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

for jQuery 1.9.1, using chrome (not checked other browsers) a selector such as $('#chk').checked returns undefined whereas document.getElementById("chk").checked returns the current property value.

Attachments (0)
Change History (1)

Changed February 11, 2013 02:43PM UTC by gibson042 comment:1

component: unfiledattributes
resolution: → notabug
status: newclosed

checked is a property of native DOM elements; not of jQuery collections. Use $("#chk").prop("checked").