Copy link to clipboard
Copied
HI,
I have a requirement where use can mutli select in a dropdown and click on search , Once the search is clicked it query the db and provides the result.
My question is how to retain the values of teh mutli select dropdown, Below is the select where i have to code
<SELECT NAME="category" size = "5" multiple="multiple" id="category" onchange="validate()">
<CFLOOP QUERY="categorylist">
<OPTION VALUE="#category#"<CFIF category IS thecategory> SELECTED STYLE="background-color:#app.field_highlight#"</CFIF>>#category_name#</CFLOOP>
</SELECT>
Can someone help
Thanks in Advance
Copy link to clipboard
Copied
<cfif ListFindNoCase(theCategory, category)>
This will select each category that is listed in theCategory.