WdatePicker插件占用onchange事件,故应该用 onpicked
选择时间后,监控是否改变时间,改变后,可以提交
html
<input class=”Wdate” type=”text” onfocus=”WdatePicker({maxDate:’%y-%M-%d’,dateFmt:’yyyy/MM/dd’,onpicked:ChangeValue})”
name=”hiredate” value=”{$teacher.hiredate}”>
js
function ChangeValue(){ $(“#submit”).removeClass(‘disabled’); }
评论前必须登录!
注册