aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jquery/jquery.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 1ca039b70..9b9cfa4e0 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -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