Side navigation
#10496 closed bug (duplicate)
Opened October 14, 2011 02:48PM UTC
Closed October 14, 2011 03:01PM UTC
Last modified October 14, 2011 03:01PM UTC
$.attr doesn't work, in on click handler it keeps attribute old value after overriding its value
Reported by: | pajoe@go2.pl | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$(".imgBox").append("<input id='tt' type='checkbox' />"); $(".imgBox input").click(function(){ if ($(this).attr("checked")) $(this).attr("checked", "checked"); else $(this).attr("checked", null); });