摘要: View Code 1 /* js验证 */ 2 $(".myform1").submit(function(){ 3 var isSub = true; 4 var isFocus = false; 5 $("input[type='text']").each(function() { 6 if($(this).val()==""){ 7 if(!isFocus) 8 { 9 ... 阅读全文
posted @ 2013-03-14 16:19 wsw0515 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1 JS判断只能是数字和小数点 0.不能输入中文 1)<input onpaste="return false;" type="text" name="textfield" style="width:400px; ime-mode:disabled" value=""> 2)<script> function chkIt(frm){ if (frm.n1.value.length>0&&frm.n1.value.match(/[\x01-\xFF]* 阅读全文
posted @ 2013-03-14 14:24 wsw0515 阅读(742) 评论(0) 推荐(0) 编辑