Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-29-2011, 06:52 AM   PM User | #1
fzh
New to the CF scene

 
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
fzh is an unknown quantity at this point
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
fzh is offline   Reply With Quote
Old 09-29-2011, 07:38 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
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.
SB65 is offline   Reply With Quote
Reply

Bookmarks

Tags
datepicker, jquery

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:26 AM.


Advertisement
Log in to turn off these ads.