Recently, I implemented the custom select box script from . This script allows for two select boxes, where the second one updates dynamically using AJAX when there is a change in the first select box. Below is a sample of the HTML code:
<option>One</option>
<option>Two</option>
<option>Three</option>
To update my select box after an AJAX success, I utilized the sync() method. While the content does get updated successfully, I encountered an issue where the scroll bar disappears.
I delved into the selectbox.js file and noticed that the sync() method invokes the _setupScrollbar() function after updating the content. However, despite this call, the scroll bar fails to appear. Can anyone provide assistance with resolving this problem?
If you want to explore the code further, feel free to check out the Demo code.