2012-09-10 15:33:46 +00:00
<!doctype html>
2009-01-02 03:56:06 +00:00
< html lang = "en" >
< head >
2010-09-10 12:50:53 +00:00
< meta charset = "utf-8" >
2009-01-19 22:42:58 +00:00
< title > jQuery UI Datepicker - Localize calendar< / title >
2010-09-10 12:50:53 +00:00
< link rel = "stylesheet" href = "../../themes/base/jquery.ui.all.css" >
2013-02-05 13:47:59 +00:00
< script src = "../../jquery-1.9.1.js" > < / script >
2010-09-10 12:50:53 +00:00
< script src = "../../ui/jquery.ui.core.js" > < / script >
< script src = "../../ui/jquery.ui.widget.js" > < / script >
< script src = "../../ui/jquery.ui.datepicker.js" > < / script >
2013-01-31 15:31:27 +00:00
< script src = "jquery.ui.datepicker-ar.js" > < / script >
< script src = "jquery.ui.datepicker-fr.js" > < / script >
< script src = "jquery.ui.datepicker-he.js" > < / script >
< script src = "jquery.ui.datepicker-zh-TW.js" > < / script >
2010-09-10 12:50:53 +00:00
< link rel = "stylesheet" href = "../demos.css" >
< script >
2009-01-02 03:56:06 +00:00
$(function() {
2010-09-10 12:50:53 +00:00
$.datepicker.setDefaults( $.datepicker.regional[ "" ] );
$( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] );
$( "#locale" ).change(function() {
$( "#datepicker" ).datepicker( "option",
$.datepicker.regional[ $( this ).val() ] );
2009-01-02 03:56:06 +00:00
});
});
< / script >
< / head >
< body >
< p > Date: < input type = "text" id = "datepicker" / >
< select id = "locale" >
2009-01-04 11:13:40 +00:00
< option value = "ar" > Arabic (‫ (ل ع ر ب ي < / option >
2009-01-02 03:56:06 +00:00
< option value = "zh-TW" > Chinese Traditional (繁 體 中 文 )< / option >
2009-01-02 15:36:40 +00:00
< option value = "fr" selected = "selected" > French (Franç ais)< / option >
2009-01-04 11:13:40 +00:00
< option value = "he" > Hebrew (‫ (ע ב ר י ת < / option >
2009-01-02 03:56:06 +00:00
< / select > < / p >
2010-09-10 12:50:53 +00:00
< div class = "demo-description" >
< p > Localize the datepicker calendar language and format (English / Western formatting is the default). The datepicker includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.< / p >
2012-09-10 15:33:46 +00:00
< / div >
2009-01-02 03:56:06 +00:00
< / body >
< / html >