article

Wednesday, April 7, 2010

Jquery Basics 2

Jquery Basics 2

jQuery Stucture
$ = jquery, selector is a DOM element and function execute a jquery fuction.
$(selector).function(parameters);

DOM - Document Object Model Wiki

Selectors

-> Select DOM elements eg: $('h1') ,$('div'), $('li')..
-> Select ID : $('#id_name')
-> Select Class : $('.class_name')
$("#header") = get the element with id="header"
$("h3") = get all


1. jQuery Animate div and image




jQuery Animate Image





jQuery Animate Div



My Div Animate div and image






2. Fade div - Selecting Page Elements by ID




So as this.












This works on blogger






This works on blogger





Test

Related Post