Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

The datepicker () Method > The datepicker (“action”, params) Method

The datepicker (“action”, params) Method

The datepicker ("action", params) method can perform an action on the calendar, such as selecting a new date. The action is specified as a string in the first argument (e.g., "show" to display the calendar). The available actions are listed in Table 8-9.

Table 8-9. The datepicker (“action”, params) method actions

Action

Function

datepicker ("show")

Show calendar.

datepicker ("hide")

Hide calendar.

datepicker ("getDate")

Return a Date object corresponding to the selected date.

If the date format is not specified (options.dateFormat), the date is presented in the form mm/dd/yy, even if the JavaScript file for the country is included. Make sure to always specify options.dateFormat if you use datepicker ("getDate") with a format other than English.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial