diff options
author | Gnomino <Gnomino@users.noreply.github.com> | 2016-10-27 11:10:13 +0200 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2016-10-27 11:10:13 +0200 |
commit | 2bb9cf6d23492e0d840ccf8fd8f032dd7fe0de7e (patch) | |
tree | 0c6159d15c8aeb1d438e4320e1dc2f6949f671d6 /jquery.html.markdown | |
parent | 46a02d6ee2cb29b9e0cea00a02a9f60e80e508cb (diff) |
Changes ambiguous class name (#2523)
Diffstat (limited to 'jquery.html.markdown')
-rw-r--r-- | jquery.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery.html.markdown b/jquery.html.markdown index ffac93f8..5ac730f5 100644 --- a/jquery.html.markdown +++ b/jquery.html.markdown @@ -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 |