I have the following HTML5 Custom Attribute:
<input ... class="my-input" data-counted="N">
How do I change its value (from "N" to "Y") in jquery?
Here is what I have and it does not work:
$(document).on('change', '.my_input', function() {
$(this).attr('data-counted').val('Y');
});
you can use
or