I have PHP creating a dynamic list of fields, which I would like to use JQuery UI's datepicker on. All of the fields are in an array so I can manage them easy...so how can I make it make all of the fields use the datepicker? I've tried the following with no luck:
// Datepicker
$('#datepicker[]').datepicker({
inline: true,
showButtonPanel: true,
changeMonth: true,
changeYear: true
});
// Datepicker
$('#datepicker[]').datepicker({
inline: true,
showButtonPanel: true,
changeMonth: true,
changeYear: true
});