Hi, I have a little problem.

I have a page that displays a list of people playing in a
tournament.

I need to be able to generate a Leaderboard based on which players are
manually selected by the admin.

Next to each person there is a drop-down list. An admin can go in and
select a "slot" that a player should be in on the leader board from 1
to 8, or leave it blank if none.

What I need to figure out how to do is the following, when a change
event happens on a drop-down list, and say the value 5 is selected, I
need to check to make sure that 5 is not already selected in one of
the other players drop-down lists, in other words, that the 5th
leaderboard slot is not already full.  if it is, display an error
message and make them change that one first.

Any idea how to do that with jQuery?  I'm thinking it will have
something to do with the each() function, but not sure exactly how the
logic should work.

Reply via email to