Connecting Tech Pros Worldwide Forums | Help | Site Map

double linked Select box - validation

Newbie
 
Join Date: Aug 2007
Posts: 1
#1: Aug 1 '07
Hi,

I have two listboxes. Both the list boxes contain the numbers from 1 to 10.

If I select 2 in the first select box and also 2 from the second select box i have to get the alert that both the select boxes should not contain the same value.

I need the script without submitting the form.

Can anyone help me out?

gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,134
#2: Aug 1 '07

re: double linked Select box - validation


hi ...

welcome to TSDN ...

do you have some code so far, that you may post? you need a function that compares the values of your two select-boxes ... and that function should be called onchange of both of your boxes ...

kind regards
Reply


Similar JavaScript / Ajax / DHTML bytes