Reset selected value from dropdown using jQuery
I am trying to clear selected value on a button click using jQuery. $("#cityCode")[0].selectedIndex = 0; This is working fine for a single selector, but if I target multiple selectors like this $("#cityCode, #townCode")[0].selectedIndex = 0; It works only for…