Skip to content


jQuery Learning

Selectors :

?View Code JAVASCRIPT
 
$(document); // Activate jQuery for object
 
$('#mydiv')  // Element with ID "mydiv"
 
$('p.first') // P tags with class first.
 
$('p[title="Hello"]') // P tags with title "Hello"
 
$('p[title^="H"]') // P tags title starting with H

Posted in Programming. Tagged with , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.