<div class="r_row">
<div class="row field_currency">
<div class="f_row"><label class="" for="currency">Currency</label></div>
<div class="r_row">
<select id="currency" name="currency" class=" select">
<option value="ron" >USD</option>
<option value="eur" selected="selected">EUR</option>
</select>
<div class="error context" id="error_currency"></div>
<div class="hint context" id="hint_currency"></div>
<span class="checked"> </span>
<div class="fancy_select"><div class="first" value="USD">USD</div><div class=" last" value="eur">EUR</div>
<br clear="all">
</div></div>
<br style="clear:both">
</div>
</code></pre>
I would like to implement a functionality using two divs
<div>USD</div><div>EUR</div>
, and with the assistance of jQuery, if I click on USD, it should update the value of the Select box and add a custom class to the USD div. Similarly, clicking on EUR should change the select value to EUR, remove the class from USD, and apply that class to EUR. How can this be achieved? Your guidance is much appreciated.