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.
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #jquery #object #queryselector
ADD COMMENT
Topic
Name
1+8 =