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);
 
PREVIOUS NEXT
Tagged: #queryselector #jquery
ADD COMMENT
Topic
Name
1+9 =