![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
页面开发
lfjiuwei
屌丝程序员一名,菜鸟
展开
-
关闭windows.open()窗口,刷新父页面
window.close();//关闭弹出窗口window.parent.opener.location.href="/propaganda/probook!getAllProBook.htm?id="+pid;//刷新父级页面原创 2016-01-08 14:56:46 · 842 阅读 · 0 评论 -
form表单submit提交时,用ajax做异步验证
当form表单用“submit”按钮提交时,如果中间有用ajax验证,它会一步一步将方法里的代码走完,所以ajax验证没有效果原创 2016-01-12 15:38:56 · 658 阅读 · 0 评论 -
ajax动态下拉框的级联操作
js方法//市区代码,社区代码级联 function changeCity(selectedCity){ //alert(selectedCity); $("#headPageInfocityCode").val(selectedCity); if(selectedCity=="0"){ $("#belongCode").html(""); return;原创 2016-01-14 16:51:54 · 348 阅读 · 0 评论 -
jQuery为<input />标签添加“disable”和去除“disable”属性
$("#subButton").attr("disabled","disabled");//禁用input标签$("#subButton").attr("disabled",false);//启用input标签原创 2016-02-18 10:59:41 · 5664 阅读 · 1 评论