[thelist] else?
Matt Warden
mwarden at gmail.com
Sun Feb 18 22:13:55 CST 2007
On 2/18/07, David Lindblad <fluidcom at cogeco.ca> wrote:
> Can anyone provided direction as how to end/correct this script, if a
> value of 4 or greater is entered I want to leave everything as is,
> anything less than four I require the message, as per script below,
> and the field entry to revert to empty.
>
> var a = this.getField("quantity.0");
>
> if (a.value <= 3);
> event.value="";
> app.alert("A minimum quantity of 4 is required", 4);
var a = this.getField("quantity.0");
if (a.value <= 3) {
event.value="";
app.alert("A minimum quantity of 4 is required", 4);
}
--
Matt Warden
Cleveland, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the thelist
mailing list