Thanks Tony! great Job!

All the Best 
Jerry


-----Original Message-----
From: Tony Schreiber [mailto:[EMAIL PROTECTED]]
Sent: 23 July 2001 15:58
To: CF-Talk
Subject: Re: JavaScript Function


I don't know exactly how to do this, but I'm a big fan of preventing
wrong
entry in the first place. You should be able to, when the YearFrom is
selected, rewrite the contents of the YearTo select box to begin at the
YearFrom selected. This way, it would be impossible to overlap. Just a
thought. ;p

> Could anyone give me advice on the following function?
>
> Ive got 2 Select boxes with Years as the value for each,so that the
user
> can pick dates from to etc.
>
>   ie From <select name="YearFrom"> 1999 up to 2030
>       to     <select name="YearTo">1999 up to 2030
>
> what i require is a function  (Onsubmit) that makes sure that the year
> to is not less than the year from,throwing up an alert box.
>
>
> Many Thanks in Advance
>
>
> Jerry Staple
>
> Web Applications Developer
> BizNet Solutions
> 133 - 137 Lisburn Rd
> Belfast
> BT9 7AG
>
> Tel: +44 (0)28 9022 3224
> Fax: +44 (0)28 9022 3223
> www.biznet-solutions.com
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to