$("#regDate").datepicker( { showMonthAfterYear: true, //The month is shown after the year changeMonth: true, //Allow month selection changeYear: true, //Allow selection of year dateFormat:'yy-mm-dd', //Set date format closeText:' Shut down ', //Only showButtonPanel: true will show duration: 'fast', showAnim:'fadeIn', showOn:'button', //Displays the button trigger next to the input field. The default is: focus. You can also set both buttonImage: 'images/commons/calendar.gif', //Button icon buttonImageOnly: true, //Do not put the icon on the button, that is, remove the button buttonText:' Select a date ', showButtonPanel: true, showOtherMonths: true, //appendText: '(yyyy-mm-dd)', });