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

Detailed analysis of jquery date control datepicker attribute_jquery

WBOY
WBOYOriginal
2016-05-16 17:16:50955browse
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)' ,
});
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