Welcome Guest. Sign in or Signup

DatePicker

Posted on December 21, 2012 4 Comments

How to set current date as default date in jquery datepicker?

you can set the current date into jqurey datepicker using setDate, $(“#datepicker”).datepicker(“setDate”, new Date()); The following sample will help you to set the current date as a default date in jquery datepicker.

Posted on June 25, 2012 0 Comments

How to add some custom text to the DatePicker’s text field?

Use this approach to include a “Now Showing” prefix to the DatePicker’s text field.

Posted on June 19, 2012 0 Comments

How to restrict date selection to specifc week days in the dropdown?

Here is some code that will allow you to restrict selection to specific week days in a datetime picker:

Posted on April 26, 2012 0 Comments

How to adjust the DatePicker’s dropdown’s Z-Index?

Sometimes the DatePicker will dropdown below your other UI elements in the pages if those elements have a higher Z-Order. So, you will have to adjust the dropdown’s Z-index to make it appear on top. You can do this as follows:

Posted on April 10, 2012 0 Comments

How to disable weekends in a Datepicker dropdown?

You can do so by specifying noWeekends as the function for the beforeShowDay option.

Posted on April 10, 2012 0 Comments

How to highlight special days in the Datepicker dropdown?

You can do so by providing a beforeShowDay event handler as follows: