Category Archives: Jquery Blog
jQuery fadeOut milliseconds
jQuery fadeOut milliseconds – You can define your custom speed in milliseconds.
Syntax of jQuery fadeOut milliseconds
$(selector).fadeOut(milliseconds);
jQuery fadeOut fast
jQuery fadeOut fast adds fast transition to visible elements to hide them.
Syntax of jQuery fadeOut fast
$(selector).fadeOut("fast");
jQuery fadeOut slow
jQuery fadeOut slow adds slow transition to visible elements.
Syntax of jQuery fadeOut Slow
$(selector).fadeOut ("slow");
jQuery fade in milliseconds
jQuery fade in milliseconds – You can define your custom speed in milliseconds.
Syntax of jQuery fade in milliseconds
$(selector).fadeIn(milliseconds);
jQuery fadeIn Fast
jQuery fadeIn fast adds fast transition to hidden elements i.e; fadein with fast speed. $(selector).fadeIn(“fast”); is used to add fadeIn fast effect where it accepts parameter “fast” to add the transition speed. Below example explains this effect with online demo and editor.
Syntax of jQuery fadeIn fast
Here is syntax for fadeIn fast example in jQuery –
$(selector).fadeIn("fast");
selector: Is selector element.
“fast” : Is input parameter to add fast transition in selected element.
The above code will produce following result-
Note : This is image of the output. To run this demo click on the above “Try it” button.
jQuery fadeIn Slow
jQuery fadeIn slow adds slow transition to hidden elements ie. fadein with slow speed.
Syntax of jQuery fadeIn Slow
$(selector).fadeIn("slow");
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
|
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
|
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”.