Jquery Template textbox not showing datepicker
- by pirzada
I am using Datepicker on one of the the textbox in Jquery template but its not popping up. Outside of the template working fine. Below is what I want to do.
jQuery().ready(function () {
//$("#HireDate").datepicker();
$("#HireDate").datepicker({dateFormat:'dd-mm-yy', showAnim:'fadeIn'})
});
<script id="UserDetailTemplate" type="text/x-jquery-tmpl">
<table style="width:100%;">
<tbody>
<tr>
<td style="width:25%;font-weight:bold;">HireDate:</td>
<td><input type="text" id="HireDate" value="${ HireDate }" /></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</script>