I have the following html and I am trying to add a class to it via the data attribute:
<p class="form-row form-row-wide" data-child-field="child_has_jacket">
</p>
Using jquery I've tried :
jQuery(document).ready(function( $ ){
$('.form-row [data-child-field='child_has_jacket']').addClass("selected");
});
Doesnt work. Anyone an idea?