I would like a that accept comma instead of dot
Using a validator like below works in chrome but not in edge :
<input type="number" pattern="[0-9]+([\,|\.][0-9]+)?" name="my-num"
step="0.01"
id="with-validator"/>
$('#with-validator').on('change keyup', function(event) {
if ( event.target.validity.valid ) {
$('#result').text($(this).val());
} else {
$('#result').text('NOPE');
}
});
Unfortunately I am working on a UWP windows 10 app that use the Edge render engine.
How could I achieve this in Edge?