Answers for "input allow only alphanumeric"

0

alphanumeric input

<p>
    <input type="text" name="identifier" class="field" pattern="[a-zA-Z0-9]+" />
</p>
Posted by: Guest on October-08-2021
0

javascript allow only alphanumeric characters

$('#MyTextInput').on('propertychange input', function () {
  let result = $(this).val().replace(/[^0-9a-z]/gi, '');
  $(this).val(result);
});
Posted by: Guest on June-24-2021

Code answers related to "input allow only alphanumeric"

Browse Popular Code Answers by Language