The problem is all the selectboxes are called the same name hence the need for a list function
1,2,3 1,2,2 <--Error Alex -----Original Message----- From: Matt Horn [mailto:[EMAIL PROTECTED]] Sent: 19 December 2002 14:51 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] OT : Javascript Question Something like if((selectbox.value ==selectbox2.value) || (selectbox2.value ==selectbox3.value) || (selectbox.value ==selectbox3.value)) { alert("please select unique values for each box"); } else { formname.submit(); } I havnt tested this but it should work in IE at least At 14:20 18/12/2002 +0000, you wrote: >Hi, > >Having one of those mind blank days > >I have 3 select boxes within a form all with the same name > > >What I want to do is check to make sure that the user cant select the same >option more than once > >e.g. > >1,2,1 > >1,1,3 > >So that the form will only submit if the list is unique > >Anybody got any ideas (are there any list functions) or any code snippets > >got as far as > >if (document.NewConf.Category_ID.value.length){ > >} > >but now want to check each element of the list > >Any ideas > >Alex > > > >-- >** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
