Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

queryselector for jquery

var x = $(".yourclass")[0];
console.log('jq' + x);
var y = document.querySelector(".yourclass");
console.log('js' + y);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #queryselector #jquery
ADD COMMENT
Topic
Name
4+4 =