一种做输入的校验 同是可以验证不让粘贴复制
jQuery(function($){
$("#briefingNo").keydown(function(){
document.getElementById("briefingNo").onpaste = function(){return false;}
if((event.keyCode >=96 && event.keyCode <=105)
||(event.keyCode >=48 && event.keyCode <= 57)
||event.keyCode == 8
||event.keyCode == 9
||event.keyCode == 46
||event.keyCode == 37
||event.keyCode == 38
||event.keyCode == 39
||event.keyCode == 40
||event.keyCode == 189
||event.keyCode == 187
||event.keyCode == 192
||(event.keyCode>=65 && event.keyCode<=90)){
return true;
}else{
return false;
}
});
});