SIVA

SIVA

  • NA
  • 742
  • 707.5k

Problem with JQuery Datepicker

May 24 2012 6:42 AM
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


Answers (3)