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: | mark.schultheiss@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | attributes | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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 comment:1
component: | unfiled → attributes |
---|---|
resolution: | → notabug |
status: | new → closed |
checked
is a property of native DOM elements; not of jQuery collections. Use$("#chk").prop("checked")
.