Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    fzh
    fzh is offline
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question javascript datepicker

    How do i come up with the code for this:
    datestart should always be greater or equal to datetoday?

    I am using jquery datepicker for this


    I have actually tried using other javascript but it is not working.

    p.s. this program is a combine of vbscript, MySQL and javascript language

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    Use the minDate option (assuming you're using jQuery UI datepicker):

    Code:
    $( ".selector" ).datepicker({ minDate: 0 });
    This option accepts a date or an integer indicating the number of days from today - so setting to 0 sets the minimum date to today.


  •  

    Tags for this Thread

    Posting Permissions

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