Skip to main content

Posts

Showing posts with the label eq

jQuery Method hasClass,animations,fadeIn,fadeOut,eq

What is jQuery‭ ‬: JQuery is a JavaScript library which is small, quick, with tons of features that makes things such as animation, event handling and manipulation in web browser easy to use and handle. 1-jQuery is a fast and concise JavaScript Library created by John Resig in‭ ‬2006‭ ‬with a nice motto‭ ‬-‭ 2-Write less,‭ ‬do more.‭ 3-jQuery simplifies HTML document traversing,‭ ‬event handling,‭ ‬animating,‭ ‬and Ajax interactions for rapid web development. jQuery hasClass() Method Determine whether any of the matched elements are assigned the given class Syntax : .hasClass(className) The hasClass(class) method returns true if the specified class is present on at least one of the set of matched elements otherwise it returns false. Code : <html> <head> <title>The Selecter Example</title> <script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/query.min.js">...