Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

select a class jquery

document.querySelector('h1');
//basically the $ = document.querySelector()
//below is the equivalent to above
$('h1'); // by element
$('.by-class');
$('#by-id');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #class #jquery
ADD COMMENT
Topic
Name
1+2 =