uidatepicker - Simple jQuery UI DatePicker question -


Maybe I'm really asking stupid questions here, but how can I update an input field with a date if Datepicker is attached, do not want to use the AltField function for a div because I want to use it to display a user-friendly output to the site user.

Thanks

You can use altField for hidden input and some And to tie the event of this hidden change (aka show user-friendly output).

  $ ('selector'). Dadepeker ({altField: '#actualDate'}); $ ('# Actual date') Change (function () {...});  

Or use the event.

  $ ('. Selector'). Datepicker ({on select: function (dateText, inst) {...}});  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -