I am using w3.css, creating a drop-down search. The search results are displayed in the drop-down after the ajax-powered search is completed. There is a DIV that is populated with the search results, with overflow-y set to auto (or scroll). When I click on the up or down arrow of the scroll bars that result or when I try to move the scroll position indicator up and down, the contents of the div do not adjust up or down. When my mouse is hovering inside the div and I use the mouse wheel, the contents do adjust, and the scroll position indicator moves up and down as well.
I have tried changing the overflow-y between auto and scroll, and I have tried adjusting the height of the div.
<div class="w3-dropdown-click">
<button type="button" class=" w3-button w3-hide-small w3-padding-medium w3-hover-theme" title="Search" onclick="advancedsearch_click()"><i class="fas fa-search-plus"></i> Advanced Search</button>
<div class="w3-dropdown-content w3-bar-block w3-theme-l3 " id="advsearchboxdiv">
<span class="w3-bar-item w3-border w3-border-theme w3-medium w3-padding-small">
Name<br><input type="text" class="w3-medium w3-border w3-border-theme" style="width:200px;height:30px;" id="searchname" name="searchname">
</span>
<span class="w3-bar-item w3-border w3-border-theme w3-medium w3-padding-small">
Country<br><input type="text" class="w3-medium w3-border w3-border-theme" style="width:200px;height:30px;" id="searchlocation" name="searchlocation">
</span>
<div id="searchresults" style="display:none;height:75px;overflow-y:scroll;" class="w3-padding-small"></div>
<button id="searchgobutton" type="button" class="w3-bar-item w3-button w3-center w3-hide-small w3-theme-d2 w3-padding-small w3-hover-theme" title="Search" onclick="dosearch_click()">Go</button>
</div>
Each of the result items of the search are contained in a button, which is populated using the ColdFusion CFOUTPUT tag:
<cfoutput query="qSearch">
<button type="button" class="w3-bar-item w3-button w3-center w3-hide-small w3-theme-d2 w3-margin-tiny w3-padding-tiny w3-hover-theme" >#qSearch.item#</button>
</cfoutput>
What must I do to get the vertical scroll bars working ?