I have a div tag something like below
<div class="class" data-mark-comp="comp1" data-conf-property1="p1" data-conf-property2="p2" data-conf-property3="p3"</div>
I want to create an object consisting of attributes data-conf-*
var conf = $(".class").data() <br>
I tried the above, but it consists of all the attributes that I do not need in accordance with my requirement.
var conf = $(".class").data("conf-*") - this one also not working
source
share