jQuery function
Selectors
Fade effect
- You use this to select elements from an HTML page to manipulate.
- The $ shortcut means you don't have to type “jQuery" over and over.
- The jQuery function can handle selectors, straight HTML, and even JavaScript objects.
Selectors
- jQuery selects elements the same way CSS does: with selectors.
- Just about any kind of HTML element is fair game for a jQuery selector.
Fade effect
- Once you've selected an element, you can fade it in a variety of ways, using FadeIn, FadeOut, FadeTo, and FadeToggle.
- You can fade in all kinds of elements, from text to images and more.
- Control the speed of your fade effect by putting a time (in milliseconds) value inside the parentheses at the end of the statement.
No comments:
Post a Comment