Home  >  Article  >  Web Front-end  >  Jquery date and time selection plug-in that is close to user experience_jquery

Jquery date and time selection plug-in that is close to user experience_jquery

WBOY
WBOYOriginal
2016-05-16 15:44:071155browse

Share a date and time selection plug-in close to Jquery. This is a dual calendar jQuery date selection time plug-in pickerDateRange. The rendering is as follows:

Online preview Source code download

Js code

var dateRange = new pickerDateRange('date_demo3', { 
    aRecent7Days: 'aRecent7DaysDemo3', //最近7天 
    isTodayValid: false, 
    //startDate : '2013-04-14', 
    //endDate : '2013-04-21', 
    //needCompare : true, 
    //isSingleDay : true, 
    //shortOpr : true, 
    defaultText: ' 至 ', 
    inputTrigger: 'input_trigger_demo3', 
    theme: 'ta', 
    success: function (obj) { 
     $("#dCon_demo3").html('开始时间 : ' + obj.startDate + '<br/>结束时间 : ' + obj.endDate); 
    } 
   }); 

Instructions for using options and events

Datepicker provides a wealth of options to set event method calls. The author first organizes the frequently used related attributes and methods into a table for easy query and use.

The above is this article to share with you the Jquery date and time selection plug-in that is close to user experience. I hope you like it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn