Implemented AJAX in dynamic dropdown menu