Multiple datepicker problem with same ID
Posted
by namezero
on Stack Overflow
See other posts from Stack Overflow
or by namezero
Published on 2010-03-12T09:20:16Z
Indexed on
2010/03/12
16:07 UTC
Read the original article
Hit count: 197
hi, here is my problem:
<input type="text" class="datepick1" id="date" />
<input type="text" class="datepick2" id="date" />
<input type="text" class="datepick3" id="date" />
then i apply datepicker on dom (by classname)
$('.datepick1').datepicker();
$('.datepick2').datepicker();
$('.datepick3').datepicker();
=> the three dom have datepicker but, onselect date, it change automatically the first one (datepick1)
HELP
© Stack Overflow or respective owner