I would like a function to run when a specific anchor with the `value="frb" is clicked.
This is the anchor
<a href="<?php echo $l1; ?>" value="frb" class="button">Accept</a>
this is what i tried:
$('body').on('click', value[frb], function(e) {
e.preventDefault();
});
this doesnt work, i cant find any examples that use this, is it possible?
aelement has novalueattribute, as already mentioned, but rather than repurposing theclassattribute, why not simply use a customdata-*attribute?