We help IT Professionals succeed at work.

Showing Selection of a multiple select box

nmarano
nmarano asked
on
107 Views
Last Modified: 2017-05-03
Hello Experts-

I have this form with select boxes.  Once the user clicks submit and the page refreshes with the results, I would like to highlight what the user selected from the select boxes.  Can someone explain the best way to do this?  I have 4 select boxes on the page that I would like to add this function to.

Any help would be appreciated with this.

<div style="padding-left: 10px; float:left; text-align:top;"><label for="pClientType" class="topLabel">Type:</label>
</div> 
<div style="padding-left: 10px; float:left; text-align:top;">
    <cfselect name="pClientType" id="ClientType"class="selectListText" query="qryClientTypes" selected="#pClientType#" 
            display="clientType" value="clientType" queryPosition="below" multiple="yes" > 
                <option value="All" #iif(pClientType EQ 'ALL', DE('selected'), DE(''))#>All</option>
                
    </cfselect>
</div>
        
<div style="padding-left: 10px; float:left; text-align:top;"><label for="pProductID" class="topLabel">
Product:</label>
</div>
<div style="padding-left: 10px; float:left;text-vertical-align:top;">
	<cfselect name="pProductID" class="selectListText" onChange="javascript:refreshBrandList();" multiple="yes">
			<option value="-1" #iif(pProductID EQ '-1', DE('selected'), DE(''))#>All</option>
			<cfloop query="qryProducts">
				<option value="#id#" #iif(pProductID EQ id, DE('selected'), DE(''))#>#name#</option>
			</cfloop>
 	</cfselect>
</div>

Open in new window

Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks Maria...will try it out
CERTIFIED EXPERT

Commented:
Solution provided seems to answer question
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.