Hi All,
I have used JQuery Datepicker for my application.
Here is my code
<link rel="stylesheet" http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript">script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js" type="text/javascript">script>
<script type="text/javascript" style.ui-widget { font-size: 62.5% }>
$(document).ready(function() {
$("#ctl00_ContentPlaceHolder1_txtPDOB").datepicker({
changeYear: true,
changeMonth:true,
dateFormat: 'dd/mm/yy',
minDate: new Date('01/01/1900'),
maxDate: '+1Y',
yearRange: '1900:' + Date().getFullYear
});
});
script>
Here,
When i say submit button txtPDOB.text is showing empty & I am trying to convert the text which is in txtPDOB.text into Datetime. Bt the textbox showing empty & iam getting error there.
Can anybody tell me for what reason its not taking the text from textbox after selecting Date from JQuery datepicker
Loading

Jignesh TrivediPosted May 25, 2012, 3:22 AM
Download attachment and change it extension to .zipx
and refer ControlTest.aspx and ControlTest.aspx.cs page.
hope this will help u.
SIVAPosted May 25, 2012, 3:13 AM
Unable to open that attachment.
See JQuery Datepicker is coming no problem with that & after selecting date its sits in textbox. after that when i say submit button that textbox is showing that its null.
Jignesh TrivediPosted May 24, 2012, 7:11 AM
I have tried same code but iam not getting error.
refer the Attachment.
(download attachment and change it extension to .zipx)
hope this help.