<input type="text" id="txt_Respondby" />
I am using JQuery UI DateTimePicker in the input above. it works well.
<script type="text/javascript">
$(function () {
$('#txt_Respondby').datetimepicker();
});
</script>
I have included the required JS and there is no problem with the calender
Since I want to get the value selected from the calender in server side. I changed the input to runat="server" When I tried to run it the calender wasn’t popping out. How can I access in server side the value selected in the calender.
Try this:
Is your page using a Master Page? If so, “ctl00_ContentPlaceHolder1_” will be appended to your ID’s where the control has runat=”server”. Therefore if you look for id txt_RespondBy it won’t find it because the Id is now ctl00_ContentPlaceHolder1_txt_RespondBy.