How to hide dropdown border-bottom if the user clicked on dropdown

I have created a dropdown list. In my dropdown list there are some contents. If the user clicked on the dropdown I want to hide the border-bottom of the dropdown and if the user clicked on dropdown again the dropdown should returned to the default state(means the border-bottom will show if there is no clicked)I have attached the two images. 1st one is default and the 2nd one after clicked on the dropdown… if the user clicked on dropdown again then the dropdown will show the 1st image.

Please check the attached image also

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.