newphpcoder Posted May 9, 2011 Share Posted May 9, 2011 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 More sharing options...
murfitUK Posted May 10, 2011 Share Posted May 10, 2011 It's been a while since I've used jquery but I think you do something like this:$("#date").datepicker( "option", "yearRange", '1950:2011' ); Link to comment Share on other sites More sharing options...
thescientist Posted May 10, 2011 Share Posted May 10, 2011 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 More sharing options...
newphpcoder Posted May 11, 2011 Author Share Posted May 11, 2011 Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.