Pogledajte određenu poruku
Staro 27. 05. 2015.   #3
stanke
član
Certified
 
Datum učlanjenja: 06.09.2012
Poruke: 64
Hvala: 0
251 "Hvala" u 10 poruka
stanke is on a distinguished roadstanke is on a distinguished roadstanke is on a distinguished road
Default

Resio sam ako nekome treba evo koda


<!doctype html>
<html >
<head>
<meta charset="utf-8">
<title>Date Picker</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">


<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://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>
<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">Arabic (‫(العربية</option>
<option value="zh-TW">Chinese Traditional (繁體中文)</option>
<option value="en">English</option>
<option value="fr" selected="selected">French (Fran&ccedil;ais)</option>
<option value="he">Hebrew (‫(עברית</option>
<option value="sr-SR">Srpski</option>
</select>
</p>
<ul>
<li><a href="#" id="ar">Ar</a>||</li>
<li><a href="#" id="zh-TW">Ch</a>||</li>
<li><a href="#" id="en">En</a>||</li>
<li><a href="#" id="fr">Fr</a>||</li>
<li><a href="#" id="he">He</a>||</li>
<li><a href="#" id="sr-SR">Sr</a></li>
</ul>
<input type="text" id="dt">
<script>
$(function() {
$('#dt').datepicker($.datepicker.regional['fr']);
$('ul li a').click(function(){
$('#dt').datepicker('option',$.datepicker.regional[this.id]);
return false;
});
});
</script>
</body>
</html>
stanke je offline   Odgovorite uz citat
75 članova zahvaljuje stanke za poruku:
aarkmanalfr, aczapiewskshain, aeprocaccnath, allen4jim, anorthfacemens, aparkagoose, asakamakimarc, bilpboyc, campanellawiley, cellocchiwino, cfacecheap, cfakecoach, cheapestcheapes, christianchrist, eabuechersophi, eambleclai, eangeruth, ebuyaccessories, eclawgesrayf, ecoervergabr, emergelhous, encasteranto, enhaldermjona, enpaynetruma, eosuitergilb, erexk, ershauerbric, garkingtarah, hlaschalbe, ichristianheels, iiantanidamarcp, ijoachimteod, imandarinoveola, inorrixdarr, ioltmeierlynd, irdfinninwinfo, istriblingmoshe, iyuriciclave, jnayjaso, kbierskiaria, ksaajokuthere, ktrackeisid, lerolees, lriedldonn, mjanemiles, nincenorah, nnaellanknatha, nramanyjule, nsveentreva, nydencesa, obertoerro, oiezarconepearl, olmilhoanhers, pcheapface, piehlphilr, prdpala, rahrexv, rdemarckris, rdheminovemayna, redmonstonwarne, renmorebufo, rheldermajuli, riggeralen, rkunaroyal, rlamryan, rtbonadonanorbe, srdbaisesanfo, stensmaik, tarnetcalv, tinregestevalen, tolyottjero, ueesaunanni, waskiewichowa, yaircorytiffany, ytelajoyetonet