I want to prevent user from entering '>' and '<' character. How should i do this? I tried to implement this by ( via javascript) detecting their keycodes but since '>' and '.' have the same keycode, it also prevented '.' from being entered. The same happens for the ',' and '<' characters. How should i do this?
Below is what i have tried.
$('#Notes').bind('keydown', function() {
if (window.event) {
if ((window.event.keyCode == 190) || (window.event.keyCode == 188)) {
return false;
}
else {
return true;
}
}
});