Jump to content

Jquery Date Picker

- - - - -

  • Please log in to reply
1 reply to this topic

#1
newphpcoder

newphpcoder

    Programming Professional

  • Members
  • PipPipPipPipPipPip
  • 477 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'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

Attached Files



#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
Can't you use a newer version of the Jquery UI library? The new datepickers can do

var date = new Date(1950, 1, 1);

$("div#calendar").datepicker({  minDate: date, defaultDate: date });






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users