Reputation: 835
I have created a dynamic inputfield with a datepicker. The problem is that the date picker doesn't show when clicked.
$('<input type="text" name="date" />').appendTo("table").datepicker();
<table id="dd">
</table>
Upvotes: 1
Views: 34
Reputation: 5451
change your code to:
var $el = $('<input type="text" name="date" />');
$el.appendTo('table#dd');
$el.datepicker();
hope that helps.
Upvotes: 2