This could be a repetitive question but please bare me. I have a dropdown as below, I select the option yellow, I have onclick which would do an operation and this does an ajax call. So after the ajax call the dropdown is defaulted back to red option instead of staying on yellow. I am still learning jquery
<select onChange="this.options[this.selectedIndex].onclick();>
<option value="red" onclick="">red</option>
<option value="yellow" onclick="">yellow</option>
<option value="blue" onclick="">blue</option>
<option value="green" onclick="">green</option>
</select>
Thanks in advance
try this:
A rough example as to how you achieve this: