jQuery Sliding Methods
With jQuery you can create a sliding effect on elements.
jQuery has the following slide methods:
slideDown()
slideUp()
slideToggle()
With jQuery you can create a sliding effect on elements.
jQuery has the following slide methods:
slideDown()
slideUp()
slideToggle()
With jQuery you can fade an element in and out of visibility.
jQuery has the following fade methods:
fadeIn()
fadeOut()
fadeToggle()
fadeTo()
jQuery is tailor-made to respond to events in an HTML page.
All the different visitors’ actions that a web page can respond to are called events.
An event represents the precise moment when something happens.
Examples:
The term “fires/fired” is often used with events. Example: “The keypress event is fired, the moment you press a key”. Continue reading jQuery Event Methods
jQuery selectors are one of the most important parts of the jQuery library.
jQuery selectors allow you to select and manipulate HTML element(s).
jQuery selectors are used to “find” (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much more. It’s based on the existing CSS Selectors, and in addition, it has some own custom selectors.
All selectors in jQuery start with the dollar sign and parentheses: $().
With jQuery you select (query) HTML elements and perform “actions” on them.
The jQuery syntax is tailor-made for selecting HTML elements and performing some action on the element(s).
Basic syntax is: $(selector).action()
Examples :
$(this).hide()
– hides the current element.
$("p").hide()
– hides all <p> elements.
$(".test").hide()
– hides all elements with class=”test”.
$("#test").hide()
– hides the element with id=”test”. Continue reading jQuery Syntax
There are several ways to start using jQuery on your web site. You can: