Make sure that you are using the following reference in the header and those scripts are loading properly using. You can ensure the script loading on firefox by
enabling Net
in firebug. Or you can catch any kind of script error using
javascript debugger
.
Step1:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
<script type="text/javascript">
$(function () {
$("#<%= tbxDate.ClientID %>").datepicker({
changeMonth: true,
changeYear: true
});
});
</script>
Step:2
<asp:TextBox ID="tbxDate" runat="server" ></asp:TextBox>
Ref. Here
Please let me know your update. :)