how to set the minvalue=today and max value=today+30 in javascript or how to do it in jquery what are the files i need to download .plz explain me i never used jquery before .
hiiiiii@
0
Junior Poster in Training
Recommended Answers
Jump to PostWhy not use a html5 input? No javascript required. Just min and max attributes.
http://jsfiddle.net/diafol666/Rp9L6/
You set min/max/value via php. Example. You need to get today and today+1 month. Have a look at …
Jump to PostIf you really need these variables set in JavaScript then you might do the following:
var today = new Date(), nextMonth = new Date(); nextMonth.setDate(nextMonth.getDate() + 30);
All 7 Replies
diafol
Bob Hensley
20
Bob's Back!
hiiiiii@
0
Junior Poster in Training
diafol
hiiiiii@
0
Junior Poster in Training
diafol
hiiiiii@
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.