| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|---|
| 3 | <head> |
|---|
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|---|
| 5 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> |
|---|
| 6 | <script type="text/javascript"> |
|---|
| 7 | $(document).ready(function(){ |
|---|
| 8 | $('#_Check').click(function(){ |
|---|
| 9 | $(this).attr('checked', false); //does not work |
|---|
| 10 | $(this).attr('checked', ''); //does not work |
|---|
| 11 | $(this).removeAttr('checked'); //does not work |
|---|
| 12 | this.checked = false; //works |
|---|
| 13 | }); |
|---|
| 14 | }); |
|---|
| 15 | </script> |
|---|
| 16 | </head> |
|---|
| 17 | <body> |
|---|
| 18 | <input type="checkbox" id="_Check" /><label for="_Check">Click Me</label> |
|---|
| 19 | </body> |
|---|
| 20 | </html> |
|---|
| 21 | |
|---|