Posts Tagged ‘chain

13 Mar, 2009

The sweet Chainability

Posted by: Mahbub In: Methods

One of the best thing about jQuery is it’s chain ability for almost all it’s methods. If “chain ability” sounds hebrew, here’s a little explanation what it is.

Let’s say you have a <div id=”myDiv”>Lorem Ipsum </div>
And you need to do the following 

Change the height to 150px
Change the opacity to 0.8
Add a class called “pClass”
And set [...]



Translator

Tags