Pogledajte određenu poruku
Staro 24. 05. 2015.   #1
stanke
član
Certified
 
Datum učlanjenja: 06.09.2012
Poruke: 64
Hvala: 0
254 "Hvala" u 10 poruka
stanke is on a distinguished roadstanke is on a distinguished roadstanke is on a distinguished road
Default 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">&nbsp;
<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&ccedil;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.
stanke je offline   Odgovorite uz citat
94 članova zahvaljuje stanke za poruku:
aatulatoyaf, achelmeyerneilk, aczapiewskshain, alatchawsteve, alovermannmiche, anorthfacemens, arinalva, aringascarl, asakamakimarc, calmoncenath, campanellawiley, cfacecheap, cheapestcheapes, clgroschmurie, cmmecare, cstorecanada, dtepfundtvicen, dyejidemcki, eangeruth, eardleyelis, ebuyaccessories, ecoervergabr, econeclar, eduplerjerr, egressettfavi, emergelhous, encasteranto, enpaynetruma, eosuitergilb, erexk, erisselrosc, fcheapfitsole, fhrentfrokhad, hneprchalvale, ioltmeierlynd, ionpanfilprest, ipluvoisestep, jumijaim, komalakowrein, ktrackeisid, larholburt, lartorellozadam, lemizelleshav, lerolees, llpiccillorache, lmesserlymisty, lriedldonn, mjanemiles, msematt, naginalme, nbereznycedr, ncabeceiramilto, ngreenbackmarti, nielneversnatha, nincenorah, nydencesa, obertoerro, oegwoodsydn, oiezarconepearl, okristoffflor, olmilhoanhers, orangnowshaun, otkersonlesl, pcheapface, prdpala, racmurraylize, rahrexv, raynormarl, rdheminovemayna, redmonstonwarne, renmorebufo, rggierijaco, rkunaroyal, rlamryan, rldogarrreyna, rlingeriebuy, rnnagaminewilbu, rnslerwend, sairdiscount, srdbaisesanfo, ssourstyson, taslattershaq, teastali, tezabielskyevet, tmiretedad, tolyottjero, twaratmarc, uaneinouyesteph, udiscountbags, uolyneuxmarc, uungblutsonyo, vienvert, waskiewichowa, ytelajoyetonet