Home > Web Front-end > JS Tutorial > Detailed analysis of jquery date control datepicker attribute_jquery

Detailed analysis of jquery date control datepicker attribute_jquery

WBOY
Release: 2016-05-16 17:16:50
Original
977 people have browsed it
Copy code The code is as follows:

$("#regDate").datepicker(
{
showMonthAfterYear: true, // The month is displayed after the year
changeMonth: true, // Allow month selection
changeYear: true, // Allow year selection
dateFormat:'yy-mm-dd', // Set the date format
closeText:'Close', // Only showButtonPanel: true will be displayed
duration: 'fast',
showAnim:'fadeIn',
showOn:'button' , // Display the button trigger next to the input box, the default is: focus. It can also be set to both
buttonImage: 'images/commons/calendar.gif', // Button icon
buttonImageOnly: true, // No Display the icon on the button, that is, remove the button
buttonText:'Select date',
showButtonPanel: true,
showOtherMonths: true,
//appendText: '(yyyy-mm-dd)' ,
});
Related labels:
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