Here I am trying to create a page with a textbox where I've an idea to show a CalendarExtender (like in AJAXToolkit) but now I'm trying to get it by using JQuery, the problem is, I can't make the Calendar UI to pop out when I clicked the textbox, my upper aspx page is looking like this:
<link href="../Support/StyleSheet/PageStyle.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#TbOutboundOn").datepicker({
});
</script>
and the textbox that I'm trying to use is:
<tr>
<td align="left" width="120px" height="25px">
<asp:CheckBox ID="CbOutboundOn" Text=" Outbound On" runat="server" />
</td>
<td align="center" class="style1">
<asp:Label ID="Label1" runat="server" Text=":"></asp:Label>
</td>
<td align="left" width="200px">
<asp:TextBox ID="TbOutboundOn" runat="server" Width="194px" placeholder="dd/mm/yyyy"></asp:TextBox>
</td>
<td width="645px">
</td>
</tr>
I think it's good enough, but it isn't, I can't get the calendar to show when I click the textbox in "TbOutboundOn", a friend suggested the stylesheet is the issue, but I don't quite understand, can anyone help with my problem? Btw, I used http://jqueryui.com/datepicker/#default as my reference.
I already tried to copy all the stylesheet referenced by jqueryui's datepicker sites, and combine it with my own stylesheet, but it still not working. I try to use only the stylesheet provided in jqueryui datepicker too, but still no luck.
Thank you for the help.
datepicker.js?$("#TbOutboundOn").datepicker({missing some params another suggestion is use this way:$("#TbOutboundOn").datepicker();