I have a date picker in my web application, when i click the date picker text box then date picker pop up is not showing near the text box but its showing in page down
<td>
<table style="width: 100%">
<tr>
<td>
<div id="CalendarPosition">
<asp:TextBox ID="txtOriginalEffDate" runat="server" CssClass="renDatePicker"></asp:TextBox></div>
</td>
</tr>
</table>
</td>
i have used below scripts
$(function () {
var effDate = "<%=this.effectiveDate%>";
var maxdt = new Date(effDate);
var effdate_year = maxdt.getFullYear();
maxdt.setMonth(maxdt.getMonth() - 1);
var allowedDates = "1,15";
var dt_arr = allowedDates.split(",");
$(".renDatePicker").datepicker({
changeMonth: true,
changeYear: true,
yearRange: '2003:'+ effdate_year,
maxDate: maxdt,
//defaultDate: defaultDt,
format: 'mm/dd/yyyy',
orientation: 'auto bottom',
beforeShowDay: function (date, inst) {
if (dt_arr.indexOf(date.getDate().toString()) >= 0) {
return [true, ''];
}
return [false, ''];
},
});
});
also this
$(function () {
$(".datetest").datepicker({
changeMonth: true,
changeYear: true
});
});
This working fine with the date picker but showing in page down.
<script src="../js/jquery-ui.js" type="text/javascript"></script>
<link href="../Content/themes/base/jquery.ui.all.css" rel="stylesheet" />
Please suggest me to find the solution for the issue.
Thanks is Advance .