![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 67 Pomógł: 1 Dołączył: 7.09.2008 Ostrzeżenie: (0%) ![]() ![]() |
Dlaczego podczas tworzenia dynamicznego pola textowego nie chce mi się wgrać datepicker (jquery) kiedy klikam na to pole? Jeśli zadeklaruję pole statycznie to wszystko działa:
Kod <input type="text" name="pole1" id="pole1" /> Jeśli dynamicznie to wtedy NIE działa. Kod var element1 = document.createElement('input'); element1.setAttribute('type', 'text'); element1.setAttribute('name', "pole2"); element1.setAttribute('id', "pole2"); document.getElementById("my_div").appendChild(element1); kod jquery Kod $(function() {
$('#pole1').datepick({ dateFormat: 'yy-mm-dd' }); $('#pole2').datepick({ dateFormat: 'yy-mm-dd' }); }); Ten post edytował island 4.05.2010, 19:25:16 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 10:22 |