DON
DON

Reputation: 835

Datepick not working in dynamic row

I have created a dynamic inputfield with a datepicker. The problem is that the date picker doesn't show when clicked.

Here is my fiddle

$('<input type="text" name="date" />').appendTo("table").datepicker();

<table id="dd">
</table>

Upvotes: 1

Views: 34

Answers (1)

geevee
geevee

Reputation: 5451

change your code to:

var $el = $('<input type="text" name="date" />');
$el.appendTo('table#dd');
$el.datepicker();

hope that helps.

Upvotes: 2

Related Questions