Jump to content

JQuery Date Picker


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...