Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 15:44:07
Original
1231 people have browsed it

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); 
    } 
   }); 
Copy after login

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.

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template