Hi i am trying to restrict '>' and '<' symbols from form input fields. I tried but not working for me. This is my code:
$('form input:text').keyup(function(e){
var x = e.which;
if(x==188 || x==190){
e.preventDefault();
return false;
}
return true;
});
I tried both keyup and keypress but not working.