You can do something like this:
$(function(){
var preventNumbers = [3,4,5] //array of numbers
$('input[name="sid"]').keydown(function(e){
if(preventNumbers.indexOf(parseInt(String.fromCharCode(e.which))) > -1){
return false;
}
});
})
Here I have created array of numbers which you want to prevent from type in input, and with keydown function you can prevent it.
If you want to prevent arrow event also then you have to catch the mouseup event like:
$(function(){
var preventNumbers = [3,4,5]
$('input[name="sid"]').keydown(function(e){
if(preventNumbers.indexOf(parseInt(String.fromCharCode(e.which))) > -1) {
return false;
}
}).mouseup(function(){
var val = $(this).val();
if(preventNumbers.indexOf(parseInt(val)) > -1) {
$(this).val('');
}
})
})