mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Changes ambiguous class name (#2523)
This commit is contained in:
parent
46a02d6ee2
commit
2bb9cf6d23
@ -104,13 +104,13 @@ tables.animate({margin-top:"+=50", height: "100px"}, 500, myFunction);
|
||||
// 3. Manipulation
|
||||
|
||||
// These are similar to effects but can do more
|
||||
$('div').addClass('div'); // Adds class div to all div taming-slim-20
|
||||
$('div').addClass('taming-slim-20'); // Adds class taming-slim-20 to all div
|
||||
|
||||
// Common manipulation methods
|
||||
$('p').append('Hello world'); // Adds to end of element
|
||||
$('p').attr('class'); // Gets attribute
|
||||
$('p').attr('class', 'content'); // Sets attribute
|
||||
$('p').hasClass('div'); // Returns true if it has the class
|
||||
$('p').hasClass('taming-slim-20'); // Returns true if it has the class
|
||||
$('p').height(); // Gets height of element or sets height
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user