Jquery Template textbox not showing datepicker

Posted by pirzada on Stack Overflow See other posts from Stack Overflow or by pirzada
Published on 2010-12-29T04:19:57Z Indexed on 2010/12/29 5:54 UTC
Read the original article Hit count: 265

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> 

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui