By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,969 Members | 1,735 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,969 IT Pros & Developers. It's quick & easy.

JavaScript validation for from date and to date

P: 1
Create a page with fields ‘From Date’ and ‘To Date’. Validate the form using JS such that –
‘From date’ is always less than ‘to date’.
‘To date’ should not be greater than current date.
Display 1 date of the current month in ‘from date’ field
Default date should to populated for ‘to date’ field
Otherwise display suitable error Message.
Sep 11 '12 #1
Share this Question
Share on Google+
2 Replies


ariful alam
100+
P: 185
You should first show your code, what you wrote. If there is any error, experts will help you to make you understand the error in your code.

Thanks
Sep 11 '12 #2

Dormilich
Expert Mod 5K+
P: 8,639
what have you tried?
Sep 11 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.