JQuery to JavaScript Converter online
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
Better Barracuda
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
There is no i guess:D
$("#_property_price").on("keypress", function(event) {
var englishAlphabetDigitsAndWhiteSpace = /[A-Za-z0-9 ]/g;
var key = String.fromCharCode(event.which);
alert(event.keyCode);
if (event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || englishAlphabetDigitsAndWhiteSpace.test(key)) {
return true;
}
return false;
});
$('#mytextbox').on("paste",function(e)
{
e.preventDefault();
});