jQuery Series 3

Assalamualaykum wr br…Today we are going to explore the jQuery a bit more…Now lets start with the html code as shown below:
series3
Now associated jQuery file can be written as below:
series3_1
Now here we observe a keyword ‘this’ which does not need to be in double quotes and refers to the current clicked selection. Execute the code and experience the changes…Hope enjoyed….
Now lets look it in a little bit deep…
I specify the ‘unbind’ method which releases all the actions associated with selectors whose jQuery code is shown as below:
series3_2
This ‘unbind’ method allows all events to be deactivate on selector ‘h1’.
Now I specify a parameter in unbind(“mouseleave”) which allows mouseleave event to get deactivate for all other events(actions). A sample output is given as shown below:
series_output
Thats all for the day…Enjoy….

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s