Jump to content

JQuery Date Picker


newphpcoder

Recommended Posts

Good day!I explore something so I used jquery in my date, without any knowledge about jquery. I research a sample Jquery Date Picker internet and I found one, my problem is the Year is started at 2001 , I don't know if I could change it so that the year would start atleast 1950's or 1990'shere's the code that I add in my webpage to display the Jquery Date Picker

<link rel="stylesheet" href="ui.all.css" type="text/css" media="screen" /><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js"></script><script type="text/javascript">$(document).ready(function(){$("#date").datepicker({ showOn: 'button', buttonText: "Select your Birthday" });});</script>

Thank you

Link to comment
Share on other sites

It's been a while since I've used jquery but I think you do something like this:$("#date").datepicker( "option", "yearRange", '1950:2011' );
yup. when in doubt, check the documentation.http://jqueryui.com/demos/datepicker/#option-yearRange
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...