Line breaks and chainability - JQuery

by Sanju 2012-07-05 09:52:21

Line breaks and chainability - JQuery

Instead of doing:

$("a").hide().addClass().fadeIn().hide();


You can increase readability like so:

$("a")
.hide()
.addClass()
.fadeIn()
.hide();

Tagged in:

413
like
0
dislike
0
mail
flag

You must LOGIN to add comments