Pogledajte određenu poruku
Staro 24. 05. 2015.   #1
stanke
član
Certified
 
Datum učlanjenja: 06.09.2012
Poruke: 64
Hvala: 0
342 "Hvala" u 10 poruka
stanke is on a distinguished roadstanke 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
135 članova zahvaljuje stanke za poruku:
aaleragail, aatulatoyaf, achelmeyerneilk, aczapiewskshain, aennimancarm, aionscalzconc, alatchawsteve, alovermannmiche, anorthfacemens, apelmanhora, arinalva, arussianbran, asakamakimarc, atyraanis, brdvenablerayfo, calmoncenath, celebritybrautk, cellocchiwino, cfacecheap, cheapestcheapes, crygaliciazache, cstorecanada, dmcgeadytegan, dyejidemcki, eabuechersophi, eambleclai, eangeruth, eardleyelis, ebuyaccessories, ecoervergabr, econeclar, eduplerjerr, eeblinetyron, ejerseynfl, emergelhous, encasteranto, enereebthom, enpaynetruma, eosuitergilb, epromdesigns, erexk, erisselrosc, esbardneymarku, eskuhlemarco, etolefreemiles, fcheapfitsole, fnarufsabri, hlsetheldo, hneprchalvale, hschherb, iaidimarc, ioltmeierlynd, ionpanfilprest, ipluvoisestep, istrahinarnu, iyuriciclave, jnayjaso, kbierskiaria, kdlakrick, kelambkaruth, komalakowrein, kwinskiiren, lartorellozadam, ldiellobryo, lemizelleshav, llpiccillorache, lmesserlymisty, locellelli, lvaubelyoung, metwmper, mjanemiles, naginalme, nbereznycedr, nbrabantarma, ngreenbackmarti, nielbarrinnatha, nielneversnatha, nincenorah, nkemaneddi, nnvalentasun, ntoscanoraym, nydencesa, obertoerro, ocintoyongs, oegwoodsydn, oiezarconepearl, okristoffflor, olmilhoanhers, orangnowshaun, osjoem, otkersonlesl, pcheapface, pdekenipproger, pioterpenflor, prdpala, racmurraylize, racovaratimi, redmonstonwarne, refnerrein, renmorebufo, rggierijaco, rkunaroyal, rlamryan, rldogarrreyna, rlingeriebuy, ronicodemumilag, rtbonadonanorbe, rwaversteve, sairdiscount, sdressesdresses, skocsismoshe, snbilkissmarli, sosephsenbust, srdbaisesanfo, srerasruss, ssourstyson, taslattershaq, teastali, tewittgran, tezabielskyevet, tmiretedad, tolyottjero, traditionaltrad, uaneinouyesteph, udiscountbags, uolyneuxmarc, uungblutsonyo, vienvert, waskiewichowa, wholesaleprices, xfelixjose, yleraymard, yntyno, ytelajoyetonet, zerganzazaneb