troubleshooting Question

Showing Selection of a multiple select box

Avatar of nmarano
nmarano asked on
JavaScriptColdFusion Language
3 Comments1 Solution119 ViewsLast Modified:
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>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros