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()

jsfiddle: http://jsfiddle.net/trueblueaussie/d4agz/485/


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -