首页 > Web开发 > 详细

html 重置表单

时间:2016-09-30 15:36:11      阅读:280      评论:0      收藏:0      [点我收藏+]

 

//清空表单

$(‘#SearchForm‘).form(‘clear‘);
var fdate = (new Date().getFullYear()) + "-" + (new Date().getMonth() + 1) + "-" + (new Date().getDate() - 7);
var tdate = (new Date().getFullYear()) + "-" + (new Date().getMonth() + 1) + "-" + (new Date().getDate());

//给表单的控件赋值, 

$(‘#formID‘).form(‘load‘, {

//控件name:值

ctlName1: "value",
ctlName2: "-1",
ctlName3: fdate ,
ctlName4: tdate ,
ctlName5: "  ",
});

html 重置表单

原文:http://www.cnblogs.com/lhlong/p/5923712.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!