how to select all div with data attribute code example
Example: how to select all div with data attribute
/*Jquery*/
/*SM: the syntax is pretty straightforward*/
console.log($("[data-my-custom-attribute]"));
/*Jquery*/
/*SM: the syntax is pretty straightforward*/
console.log($("[data-my-custom-attribute]"));