SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Jul 2010
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery Date Picker

    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
    Code:
    <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 Attached Files

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2007
    Location
    North Yorkshire, UK
    Posts
    483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This would set a range from 60 years ago to the present year

    Code JavaScript:
    $("#date").datepicker({ showOn: 'button', buttonText: "Select your Birthday" },  yearRange: '-60:+0');

  3. #3
    SitePoint Addict
    Join Date
    Jul 2010
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by PhilipToop View Post
    This would set a range from 60 years ago to the present year

    Code JavaScript:
    $("#date").datepicker({ showOn: 'button', buttonText: "Select your Birthday" },  yearRange: '-60:+0');
    Thank you


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •