How to get, set and select elements with data attributes ?

Using jquery,

In plain Javascript,