Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test for attr('checked', {true|false}) (bug #167)
  • Loading branch information
jzaefferer committed Sep 9, 2006
1 parent 38fa3cf commit da74bde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jquery/jquery.js
Expand Up @@ -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
Expand Down

0 comments on commit da74bde

Please sign in to comment.