mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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');
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user