PDA

View Full Version : Jquery Date Picker



newphpbees
09 May 2011, 02:17 AM
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's

here'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>




I will attach the date picker that I get from internet.

Thank you

Corrosive
09 May 2011, 02:32 AM
Assuming you are using this datepicker; http://jqueryui.com/demos/datepicker/ (you'll excuse me if I don't download your random zip file for obvious reasons). On the page I have linked there are some tabs half way down. Click on the one that says 'Options'. Then scroll all the way down until you see 'yearRange' and all the details you need are there. It is always a good idea to rtfm first ;)