Hi Guys,
Im new to JS and was wondering if you could help me break the following HTML drop down box to work with images instead?
[code]
<form action=”/store/store.asp” method=”post” name=”currencyform” id=”currencyform”>
<table width=”100%” cellspacing=”0″ cellpadding=”0″ border=”0″ id=”panel-currency”>
<tbody><tr><td><img height=”1″ width=”100%” border=”0″ src=”/store/images/spacer.gif” alt=””></td></tr>
<tr>
<td align=”left” class=”boxText”><p>Currency:<select onchange=”document.currencyform.submit()” id=”elecurrency” name=”newcurrency” class=”select”><option value=”1″>UK Pound</option><option selected=”selected” value=”2″>US Dollar</option><option value=”3″>Euro</option></select></p></td>
</tr>
<tr><td><img height=”1″ width=”100%” border=”0″ alt=”” src=”/store/images/spacer.gif”></td></tr>
</tbody></table>
<input type=”hidden” value=”set_currency” name=”doaction”>
<input type=”hidden” value=”do” name=”action”>
</form>
What i want is just 3 images (representing the currency flag) I have tried just simply using the onclick=”” but im guessing i will need to create a JS function?
Any help would be appreciated guys!
Rory