Added test for attr('checked', {true|false}) (bug #167)
This commit is contained in:
parent
38fa3cfc34
commit
da74bde0b7
4
src/jquery/jquery.js
vendored
4
src/jquery/jquery.js
vendored
|
@ -435,6 +435,10 @@ jQuery.fn = jQuery.prototype = {
|
||||||
*
|
*
|
||||||
* @test $("#name").attr('name', 'something');
|
* @test $("#name").attr('name', 'something');
|
||||||
* ok( $("#name").name() == 'something', 'Set name attribute' );
|
* 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
|
* @name attr
|
||||||
* @type jQuery
|
* @type jQuery
|
||||||
|
|
Loading…
Reference in a new issue