Start Using jQuery

jQuery main function is the ‘$(document).ready() function’. Although it’s many way to start jQuery, Always use this function to start using jQuery is good. example:

$(document).ready(function() {
$('.header-company').addClass('highlight');
});

This will add class named ‘highlight’ to element that have ‘header-company’ class. This is used generally for changing / adding class for CSS. So, when the document was loaded, the jQuery command will add the CSS Style.

Related Tutorials:

  1. Using Prototype
June 7th, 2008 by Admin

Leave a Reply

Incoming search terms for the article:
start using jquery, jquery ajax tutorials prototype, jquery ajax tutorial, jquery ajax add header, how to use jquery starting, jquery ajax start, how to start using jquery, ajax queries using prototype, jquery function document ready, jquery on function start