Chaining in Jquery

Goud.Kv
Posted by Goud.Kv under jQuery category on | Points: 40 | Views : 329
Below code explains chaining in Jquery. Chaining means specifying multiple selectors/functions to an element in Jquery.


<script>

$(document).ready(function(){
$('#mydiv').css('color', 'blue');
$('#mydiv').addClass('myclass');
$('#mydiv').fadeIn('fast');
}
</script>


In the above example, we are setting different functionalities to a 'divison'.

Comments or Responses

Login to post response