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 comment:1
Changed August 14, 2011 04:32PM UTC by comment:2
try to use prop() function instead of attr()...
Changed August 14, 2011 07:19PM UTC by comment:3
| component: | unfiled → attributes |
|---|---|
| priority: | undecided → low |
| resolution: | → duplicate |
| status: | new → closed |
Changed August 18, 2011 02:48AM UTC by 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 comment:6
Replying to [comment:3 timmywil]:
Thanks.
IE7 is NG.
FF is OK.