Uncaught TypeError:Object#<HTML.InutElement> has no method 'datepicker'

Uncaught TypeError:Object#<HTML.InutElement> has no method 'datepicker'

I am getting this error in crome while trying to add the datepicker in a dynamically created textbox
plz help me

My code is :

                <xsl:if test="@type='datetime'">
                  <input type="text">
                    <xsl:attribute name="name"><xsl:value-of select="@table" />[<xsl:value-of select="@column" />]</xsl:attribute>
                    <xsl:attribute name="value"><xsl:value-of select="@DefaultValue" /></xsl:attribute>
                    <xsl:attribute name="id">question_<xsl:value-of select="@QuestionID" /></xsl:attribute>
                    <xsl:attribute name="onfocus">
                      myDatePicker(this);</xsl:attribute>
                    <xsl:if test="@SQLParams!=''">
                      <xsl:attribute name="onchange">
                        Answer_Selected('<xsl:value-of select="@QueryString" />', '<xsl:value-of select="@QuestionID" />', '<xsl:value-of select="@table" />', '<xsl:value-of select="@column" />'); return false;
                      </xsl:attribute>
                    </xsl:if>
                  </input>
                  <br/>
                  <div class="clear">
                    <xsl:text disable-output-escaping="yes">&#x0A;</xsl:text>
                  </div>
                </xsl:if>
                

And the js file :
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
 

And the function is :
<script type="text/javascript">
    function myDatePicker(obj) {
        debugger;
        $(obj).datepicker();
    };
    </script>

PLZ HELP AM TRYING FROM LAST  DAYS