DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ColdFusion (http://www.daniweb.com/forums/forum19.html)
-   -   Pick a current date in drop down (http://www.daniweb.com/forums/thread104917.html)

raghu2d Jan 16th, 2008 2:34 am
Pick a current date in drop down
 
1 Attachment(s)
How to Pick a current date, day and year in drop down???

kiwisites Jan 17th, 2008 2:41 pm
Re: Pick a current date in drop down
 
You need to write a script..
Capture the values of the dropdown
myaptdate = form.seldate.value

Use javascript GetMonth() functions and see if the date month year are equal.. if not give alert and set focus back to the form element

See functions here
http://www.quirksmode.org/js/introdate.html
that way


All times are GMT -4. The time now is 9:53 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC