i m using a select box of country, when user select a country then add branch link appears and user add branches under that country, but when user want to change country then al
The following is working for me (Chrome). Above not. In case of this.defaultValue, it goes to empty other than default selected text/value.
if(confirm('sure?')){ //do sth; }else{ this.selectedIndex = 0; // if cancel the confirm window, option remains as unchanged. }