This content has been marked as final. Show 4 replies
A simple way to accomplish this is to use a SELECT box with MULTIPLE enabled. Selecting a name disables whatever may have been selected. Holding down CTRL key allows you to select multiple names, deselecting any that may have been selected. See concept code below.
i am afraid jdeline did not understand the problem at hand here... sure, the example is a good one of the use of populating select boxes with query results, but it does not show how to achieve what Nick201 want to achieve.
if i understand you correctly, Nick201, you need to be able to select multiple entries in your selectbox. if one of the selected entries is 'John', you need to un-select any other selected entries. if 'John' is selected, and then another selection is made, you need to un-select 'John'. am i correct?
Sorry, Sabaidee, but my concept code does exactly what you saidNick201 wanted to do. Note the MULTIPLE attribute in the <SELECT> statement.
Select John deselects anything else that had been selected. Selecting Bill deselects John. Hold down the Ctrl key allows Pam and Harry to be selected also.
I also think Nick20 has posted the same question in the "Getting Started" forum, where it has already been answered...