简体   繁体   中英

Save Dates / Events with JQuery Mobile ui-datepicker

I am looking into the JQuery Mobile Calendar UI-DatePicker.

It can be found here: http://jquerymobile.com/test/experiments/ui-datepicker/

Does anyone know how to save dates / events on it?

Thanks

The jQuery Mobile UI-Datepicker, just like any other datepicker widget, simply updates the value placed in the input box. If a user clicks the calendar day for today, the text '04/05/2011' will be placed in the input box. The widget does not do anything more than that.

It is your job to take the value in that input box and do what you want with it. Typically, you will wait for a user to submit a form, grab the date they entered, validate it, and store it somewhere.

As for where to store it, that is up to you. One good way to store things in a Javascript web app like this is using a cross browser storage library like store.js .

I think you might have the date picker confused with a calendar control. This control is for selecting dates.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM