Thursday, November 5, 2015

Today I started my journey with jquery 2x. 


  • $ will be used as selector here. 


we can match any type of element whether with id or class. I will use document.ready method to ensure that page load has finished before i invoke my function. interesting :)

 table attributes are accessible through like when i use
 $(document).ready(function(){
    $("tr:odd").hide(); 
to call all the odd rows of the table.


  • on function is important. it adds multiple event to an element
I am into show, hide function. we can pass speed value in mili sec or callback function.it also has toggle.

fadein is interesting. I would use fadein(slow,callback)
fadetToggle is what we need to operate things.
$(document).ready(function(){
    $("button").click(function(){
        $("div").fadeToggle(1000)


to be continued...
till then goodbye.
THIS IS SADAT HOSSAIN
SIGNING OFF





No comments:

Post a Comment