Tag Archives: jquery tutorial with examples for beginners

jQuery Fade In


jQuery fadeIn provides fade in functionality ie. fade in to the hidden elements.


Syntax of jQuery Fade In

$(selector).fadeIn(speed,callback);

Speed Parameter – specifies the speed of the effect.
Speeds available are :
– slow
– fast
– or in miliseconds ex. 600

Callback Parameter- Is function name which is called when transition is complete.

jQuery Fade In Example


    

Try it »

jQuery Fade In More Examples

[table width=”100%” colwidth=”20|100|50″ colalign=”left|left|center|left|right”]
No, Fade In Effect ,Syntax, Example & Demo
1,Fade In “slow”, $(selector).fadeIn(“slow”);,See Detail & Demo »
1,Fade In “fast”,$(selector).fadeIn(“fast”);,See Detail & Demo »
1,Fade In “milliseconds”,$(selector).fadeIn(600);,See Detail & Demo »

[/table]

jQuery Events


jQuery Events represents the happenings in the page.


jQuery Event Types with Example

  • Button click
  • Mouseover
  • Scrolling page
  • Selecting check box
  • Double click
  • Keypress

jQuery Events with click example


jQuery Events – click() example


    

Try it »

jQuery Event with double click example

jQuery Events – dblclick() example


    

Try it »


jQuery Event with mouseover() example


jQuery Events – Mouseover example


    

Try it »


jQuery Event with blur() example


jQuery Events – blur example


    

Try it »

tr odd Selects all odd rows of table – jQuery


$( “tr:odd” ) – selector is used to select the odd rows of the table.


tr odd Selects all odd rows of table with jQuery syntax

tr odd Selects all odd rows of table – jQuery Example


 
 
  
	

 
Click Me To Select Odd Rows


Jhohnjhone@gmail.comUSA
Kellykelly@gmail.comUSA
Kamanakamna@gmail.comIndia
Anayanay@gmail.comCanada
AnaMyamy@gmail.comCanada
Rummyasd@gmail.comCanada
Jellyy@gmail.comCanada

Try it »

Note : Row Index starts from 0,1,2….

tr even Selects all even rows of table – jQuery


$( “tr:even” ) – selector is used to select the even rows of the table.


tr even Selects all even rows of table with jQuery Syntax

tr even Selects all even rows of table – jQuery Example


 
 
  
	

 
Click Me To Select Even Rows


Jhohnjhone@gmail.comUSA
Kellykelly@gmail.comUSA
Kamanakamna@gmail.comIndia
Anayanay@gmail.comCanada
AnaMyamy@gmail.comCanada
Rummyasd@gmail.comCanada
Jellyy@gmail.comCanada

Try it »

Note : Row Index starts from 0,1,2….

href attribute selector – jQuery


$(“[href]”) – selector is used to select the all elements which have attribute “href”.


Syntax : href attribute selector

href attribute selector – jQuery Example


 
 
  
	

 
Click Me

  1. First Item
  2. Second Item
  3. Third Item

Try it »

last-child Selector- jQuery


$( “:last-child” ) – selector is used to select the last child of its parent.


Syntax : last-child Selector- jQuery

last-child Selector- jQuery Example


 
 
  
	

 
Click Me

  1. First Item
  2. Second Item
  3. Third Item

Try it »

first-child Selector- jQuery


$( “:first-child” ) – selector is used to select the first child of its parent.


Syntax : first-child Selector using jQuery

first-child Selector- jQuery Example


 
 
  
	

 
Click Me

  1. First Item
  2. Second Item
  3. Third Item

Try it »

Class Selector jQuery Example


$(“.class”) – selector is used to select the elements in the page which have class “.class”.


Class Selector jQuery Example – $(“.class”)

Class Selector jQuery Example with syntax


 
 
  
	

   
Div One..

Div Two..

Paragraph..

Span...

Try it »

$(this) Selector in jQuery


$(this) – selector is used to select the current element in the page.


Syntax : $(this) Selector in jQuery

$(this) Selector in jQuery Example


 
 
  
	

 
Click this element to invoke me..




             

Try it »