javascript - JQuery Datepicker - displaying date in several fields -
i'm having list several activities, , want jquery datepicker display date in field in each row. @ moment i'm able display date in first row, seem display in 1 field id="date" @ time. field in each row this:
<td><input id="date" name="date" /></td>
so, i'm wondering: there way can display date in every input field id="date"?
ids
must unique on page. use class instead identify elements.
the reason browsers maintain fast-lookup dictionary of id value vs element , there 1 entry per value available in dictionary.
to use class
<td><input class="date" name="date" /></td>
and target $(".date").datepicker();
instead of $('#date').datepicker()
Comments
Post a Comment