[thelist] JavaScript Validation for Pull-Down Menus and Radio Buttons
Brian Cummiskey
Brian at hondaswap.com
Wed Dec 8 11:55:28 CST 2004
Jono wrote:
>
> <!-- onsubmit HTML for pull-down that I can't get to work -->
>
> isRequiredDoesNotEqual(this.bldnumber,'Building Number')
>
> where the pull down is:
>
> <!-- HTML for pull-down menu -->
> <select id="commname" name="commname" class="request1">
> <option value="none" selected>Choose your community name...</option>
> <option value="Brookside Commons">Whatever1</option>
> <option value="Cascades Overlook">Whatever2</option>
> <option value="Edmondson Park">Whatever3</option>
> <option value="Ingram Manor">Whatever4</option>
> <option value="Symphony Center">Whatever5</option>
> </select>
>
> I tried — isRequiredDoesNotEqual(this.commname, 'commname', 'Community
> Name')
>
> but it is not working?
quick glance says your function has 2 parmaeters-
this.bldnumber,'Building Number', but you are trying to pass in 3
fields- this.commname, 'commname', 'Community Name'
That will never work.
More information about the thelist
mailing list