Home > DeveloperSection > Interviews > What is Chaining in jQuery?

Posted on    August-01-2012 3:24 AM

 JQuery
Ratings:
 1 Answer(s)
  2001  View(s)
Rate this:

Arun Singh

Total Post:310

Points:1550
Posted on    August-01-2012 12:00 AM

Chaining is very powerful feature of jQuery that means specifying multiple function and/or selectors to an element.
$(document).ready(function(){
$('#mydiv').css('color', 'blue');
$('#mydiv').addClass('myclass');
$('#mydiv').fadeIn('fast');
}

Don't want to miss updates? Please click the below button!

Follow MindStick