WHAT IS CHAINING IN JQUERY?

Arun Singh

Total Post:310

Points:1550
Posted by  Arun Singh
 2311  View(s)
Ratings:
Rate this:
  1. Arun Singh

    Post:310

    Points:1550
    What is Chaining in jQuery?

    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');
    }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!