Skip to content Skip to sidebar Skip to footer

Adding Time Jquery Ui Datepicker Dynamically?

Hi I really need little help with my dynamic table 'Timesheet '. I want add datepicker to date text filed dynamically? could anyone hlep me? this code will add new row to table whe

Solution 1:

Instead of using id use a class :

HTML

<td><inputname="date1"class="date"></td>

jQuery

$(".date").datepicker();

Solution 2:

addTableRow($("table"));

After you've done that.

$("table tr").last().find('input.date-field').datepicker({...});
//{} = datepicker settings.

Post a Comment for "Adding Time Jquery Ui Datepicker Dynamically?"