/*Jquery*/ /*SM: the syntax is pretty straightforward*/ console.log($("[data-my-custom-attribute]"));