Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Ajax Jquery jQuery selectors

Related Tutorials


 
 

Share on Google+Share on Google+

jQuery selectors

Advertisement
jQuery selectors tutorial. Learn the selectors in jQuery.

jQuery selectors

     

jQuery selectors

In this tutorial we are discussing jQuery selectors.

The jQuery selectors are one of the main feature in jQuery library .These selectors uses CSS syntax to allow page developer to easily identify the elements of page to operate upon with jQuery library methods. For using JQuery library most effectively , you must be familiar with  jQuery selectors.

Syntax pattern of jQuery selector :

$.(selector).methodName();

The selector is a string expression that identify the element on which the the method has to be implemented. For example :

$("p").click();

You can also hide the paragraph as follows :

$("p").hide();

You can also apply the CSS class to any element as :

$("p").addClass('box');

Types of jQuery selectors :

There are three categories of jQuery selector :

1.Basic CSS Selector

2.Positional Selector

3.Custom jQuery Selectors.

Learn from experts! Attend jQuery Training classes.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 6, 2010

Related Tutorials

Discuss: jQuery selectors  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:4
Virendra
June 3, 2011
Good Article

Found another interesting article that explains how to use selectors with different examples. http://jquerybyexample.blogspot.com/2011/05/jquery-selectors-examples.html
kishore
June 15, 2011
php

good
Arnel
April 3, 2012
awesome

can you send me a link so i can download a lots of jquery to use in my webpage?
arjun
May 21, 2014
jquery selector

no comment
DMCA.com