Skip to content
Permalink
Browse files
Added test for attr('checked', {true|false}) (bug #167)
  • Loading branch information
jzaefferer committed Sep 9, 2006
1 parent 38fa3cf commit da74bde0b7ab66cee11c7e6542ee29579da53948
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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

0 comments on commit da74bde

Please sign in to comment.