Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

select an element jquery

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