Usually, when a category is selected from the list of categories in the course's question bank, the page refreshes and shows the questions belonging to the selected category.
I'm adding search functionality to the select element of the categories, using the select2 library. Now when I select a category, no event is fired and the page is not refreshed.
I checked that the value of the select is changed, and so is its selected index. What else has to happen in order to trigger the event that refreshes the page?