datetimepicker
Imam problem kad hocu da promenim jezik u datetimepickeru na link nece da radi, hoce preko select al preko linka nikako
<!doctype html>
<html >
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="datepicker-ar.js"></script>
<script src="datepicker-fr.js"></script>
<script src="datepicker-he.js"></script>
<script src="datepicker-zh-TW.js"></script>
<script src="datepicker-sr-SR.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] );
$( "#locale" ).change(function() {
$( "#datepicker" ).datepicker( "option",
$.datepicker.regional[ $( this ).val() ] );
});
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker">
<select id="locale">
<option value="ar" id="ar">Arabic ((العربية</option>
<option value="zh-TW" id="zh-TW">Chinese Traditional (繁體中文)</option>
<option value=""id="en">English</option>
<option value="fr" id="fr" selected="selected">French (Français)</option>
<option value="he" id="he">Hebrew ((עברית</option>
<option value="sr-SR" id="sr-SR">Srpski</option>
</select></p>
<br>
<br>
<a href="#" id="sr">Srpski</a> || <a href="#" id="fr" >Francuski</a>
<br>
<input type="text" id="odaberi">
<script>
$(function() {
$("#odaberi").datepicker($.datepicker.regional["sr-SR"]);
$("#fr").click(function(){
$("#odaberi").datepicker($.datepicker.regional["fr"]);
});
});
</script>
</body>
</html>
prvi datapicker radi al meni treba preko linka datapicker sa id="odaberi" ne radi
Molim za pomoc
Poslednja izmena od stanke : 24. 05. 2015. u 19:40.
|