Example:
<Asp:hiddenfieldID= "HFDDATEBUID3"runat= "Server" /> <Scripttype= "Text/javascript">laydate ({elem:'#dateBuid3', //The target element. Since Laydate.js encapsulates a lightweight selector engine, Elem also allows you to pass in class, tag but must ' #id. class ' In this wayEvent:'Focus', //Response events. If the event is not passed in, the default clickChoose:function(datas) {//Select a callback with the date completeSetHfdValue3 (datas); } }); $("#dateBuid3"). Val ($ ("#hfdDateBuid3"). Val ()); //the HiddenField value is assigned to Datebuid when the page refreshes; functionSetHfdValue3 (datas) {//assigns a selected value to HiddenField $("#hfdDateBuid3"). Val (datas); } </Script>
Figure:
Foreground HTML:
Daily Date: <id= "DATEBUID3" class= "Laydate-icon " onblur= "SetHfdValue3 (this.value)" style= "width:80px;" />
References :
<Scriptsrc=".. /.. /js/jquery-1.9.1.min.js "type= "Text/javascript"></Script> <Scriptsrc=".. /.. /js/layer/laydate-master/laydate.dev.js "type= "Text/javascript"></Script> <Scriptsrc=".. /.. /js/layer/laydate-master/laydate.js "type= "Text/javascript"></Script>
Laydate.js Time Selection