Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery from object to queryselector


$( "#foo" )[ 0 ]; // Equivalent to document.getElementById( "foo" ) or document.querySelector('#foo')

$( "#foo" ).get( 0 ); // Identical to above, only slower.
 
PREVIOUS NEXT
Tagged: #jquery #object #queryselector
ADD COMMENT
Topic
Name
9+5 =