I'm trying to replace the "save" value of the submit button with an ASCII character code like —
(), except it's displaying the literal code instead of its translation.
$("#myform").on("submit", function(){
$("input#commit").attr('readonly', true).val("—");
});
Yields a button like this:
[ — ]
I also tried .prop('value', '—');
but same problem. Is this even possible?