i am trying to implement a datepicker control using Jquery,
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jqueryrelese.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#<%= TextBox1.ClientID %>").datepicker();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>
but it is not working as datepicker doesn’t popup. What code i am missing or any is there any error in this code. Thanks for any assistance.
Try using
And make sure that you have included all required .js files on your page.
For Ex: If you are using this Jquery Datepicker you must include:
NOTE:
You will get these .js files here along with demo.