$( selector ) jQuery Demo

First paragraph.

Second paragraph.

Run Demo

		
function Demo(){
		
	// Get all the p tags.
	var jP = $( "p" );
	
	// Alert side of stack (number of elements).
	alert( jP.size() );
	
	
	// Get the last P tag.
	var jP = $( "p:last" );
	
	// Alert side of stack (number of elements).
	alert( jP.size() );
	
}