Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use JQuery DatePicker on Textbox asp.net

Tags:

jquery

asp.net

How to attach a DatePicker to Textbox in JQuery.

like image 724
Tony Avatar asked Nov 25 '10 02:11

Tony


1 Answers

You should check out the jQuery UI DatePicker.

ASP.NET Example

<script>
$(function() {
    $( "#<%= txtDate.ClientID %>" ).datepicker();
});
</script>

<form id="form1" runat="server">
  <div>
    <asp:TextBox ID="txtDate" runat="server" />
  </div>
</form>
like image 100
Zachary Avatar answered Sep 28 '22 00:09

Zachary