Senin, 09 Juni 2014

jQuery Chaining

Well, this is simple post.

I just want to tell you about chaining jquery.

This is essential method to code with jquery. Most of beginner code look like this;


I think above code is bad practice. When you are dealing with tons of code, It look like mess.

The best code should look like this (chaining);