jQuery DatePicker UI regional

Posted by ScG on Stack Overflow See other posts from Stack Overflow or by ScG
Published on 2010-05-12T12:50:28Z Indexed on 2010/05/12 12:54 UTC
Read the original article Hit count: 312

Filed under:
|

I am aware that we can localize datepicker using

$(selector).datepicker($.datepicker.regional['fr']);

However can we do something like if a user passes in a value that's not supported by the datepicker regional, then automatically shift to the default language

Something like:

if(datepicker.regional does not support the language)
    $.datepicker.setDefaults($.datepicker.regional['']);

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about jQuery