Assign datepicker to runtime/dynamic textboxes in ASP.NET using jQuery

In this short and simple article, we will see how to assign datepicker to runtime textboxes or dynamic textboxes using jQuery in ASP.NET.
Here is code to create three textboxes dynamically (programmatically)
Code behind:

protected void Page_Load(object sender, EventArgs e)
        for (int b = 0; b < 3; b++)
                TextBox txtdate = new TextBox();
                txtdate.ID = "dpicker" + b.ToString();
                txtdate.CssClass = "date";   // class date
Here we created three textbox programmatically and assigned <strong>date</strong> to CssClass property of textbox. Now we going to use jQuery UI datepicker plugin to this created textbox class. 

<html xmlns="">
<head runat="server">
   <link type="text/css" rel="Stylesheet" href="" />
<script type="text/javascript" src="" >
<script type="text/javascript" src="" >
<script type="text/javascript">
    $(function () {
    <form id="form1" runat="server">
               <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

For more information about Datepicker, have a look my this article.