Laydate.js Time Selection

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.