Skip to main content

Bug Tracker

Side navigation

#10046 closed bug (duplicate)

Opened August 14, 2011 05:11AM UTC

Closed August 14, 2011 07:19PM UTC

Last modified August 18, 2011 02:49AM UTC

fail when attr("disabled",false)

Reported by: gr0org Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

attr("disabled",true) is OK.\\\\

attr("disabled",false) is NG.\\\\

jquery-1.6.2 is NG.\\\\

jquery-1.6.1 is OK.\\\\

<html>
<head>
<script type="text/javascript" src="jquery-1.6.2.js"></script> 
<script type="text/javascript">
;$(function(){
	$("#b01").click(function(){
		$("#b02").attr("disabled",!$("#b02").attr("disabled"));
	});
});
</script> 
</head>
<body>
<div>
<input type="button" id="b01" value="b01" />
<input type="button" id="b02" value="b02" />
</div>
</body>
</html>
Attachments (0)
Change History (7)

Changed August 14, 2011 06:36AM UTC by gr0org comment:1

IE7 is NG.

FF is OK.

Changed August 14, 2011 04:32PM UTC by anonymous comment:2

try to use prop() function instead of attr()...

Changed August 14, 2011 07:19PM UTC by timmywil comment:3

component: unfiledattributes
priority: undecidedlow
resolution: → duplicate
status: newclosed

Changed August 14, 2011 07:20PM UTC by timmywil comment:4

Duplicate of #9719.

Changed August 18, 2011 02:48AM UTC by gr0org comment:5

Replying to [comment:2 anonymous]:

try to use prop() function instead of attr()...

Thanks. prop() is OK.

Changed August 18, 2011 02:49AM UTC by gr0org comment:6

Replying to [comment:3 timmywil]:

Thanks.

Changed August 18, 2011 02:49AM UTC by gr0org comment:7

Replying to [comment:4 timmywil]:

Duplicate of #9719.

Thanks.