Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to select all div with data attribute

/*Jquery*/
/*SM: the syntax is pretty straightforward*/
console.log($("[data-my-custom-attribute]"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #div #data #attribute
ADD COMMENT
Topic
Name
3+2 =