<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<input id="ItemName" type="text" />
<script>
$('#ItemName').keypress(function (e) {
var txt = String.fromCharCode(e.which);
if (txt.match(/[>&.&<>/]/)) {
return false;
}
});
</script>
@mukesh singh Welcome to the community!
Although this is not right space. But still let me help you.
There certainly some issue with 'keypress' event on Android browser (i.e. chrome mobile). Try replacing it with 'keydown' event, this usually works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.