$("#money").bind("propertychange",function() {
if(""!=this.value){
var str = this.value.replace(/(^\s*)|(\s*$)/g, "");
if(this.value != str )
this.value = str;
}
if( isNaN(Number(this.value)))
this.value = this.value.replace(/[\D]/,'');
});
$("#phone").bind("propertychange", function() {
if(""!=this.value){
var str = this.value.replace(/(^\s*)|(\s*$)/g, "");
if(this.value != str )
this.value = str;
}
if (this.value.indexOf('.') != -1) {
this.value = this.value.replace(/[\.]/, '');
this.focus(); }
if (isNaN(Number(this.value))) {
this.value = ($.trim(this.value)).replace(/[\D]/, '');
this.focus(); } });
TextBox_NotDragpaste
{
ondragenter:expression(οndragenter=function(){return false;});
onpaste:expression(οnpaste=function(){return false;});
}
.TextBox_NotDragpaste
{
ime-mode:disabled;
ondragenter:expression(οndragenter=function(){return false;});
onpaste:expression(οnpaste=function(){return false;});
}
jquery
最新推荐文章于 2023-07-07 14:28:52 发布