]> source.dussan.org Git - jquery.git/commitdiff
Added test for attr('checked', {true|false}) (bug #167)
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 9 Sep 2006 17:12:26 +0000 (17:12 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 9 Sep 2006 17:12:26 +0000 (17:12 +0000)
src/jquery/jquery.js

index 1ca039b70b178451a930d2b4b97a95decba689f9..9b9cfa4e06c8273bb672d91def87760918ce1a88 100644 (file)
@@ -435,6 +435,10 @@ jQuery.fn = jQuery.prototype = {
         *
         * @test $("#name").attr('name', 'something');
         * ok( $("#name").name() == 'something', 'Set name attribute' );
+        * @test $("#check2").attr('checked', true);
+        * ok( document.getElementById('check2').checked == true, 'Set checked attribute' );
+        * $("#check2").attr('checked', false);
+        * ok( document.getElementById('check2').checked == false, 'Set checked attribute' );
         *
         * @name attr
         * @type jQuery