Currently, I am utilizing an autocomplete text box where the scroll bar exceeds based on dynamic values. However, if more values are displayed in the text box, the scroll bar automatically extends to exceed the footer of the page, resulting in two scroll bars being shown. My goal is to prevent the scroll bar from exceeding the footer content and only display within the body container. Additionally, I wish to eliminate displaying two scroll bars. Any assistance in resolving this issue would be greatly appreciated.
CSS Code:
.ui-autocomplete {
max-height: 28%;
overflow-y: auto;
}
Autocomplte Code:
The data type for areas is an array which contains multiple values.
autocomplete({
autoFocus : true,
source : areas,
selectFirst : true,
select : function(event, ui) {
};
Image