I need a bit of advice/guidance. I have a selection of colour icons. What I want to acheive is that one someone clicks on the colour icon, it puts the name of the colour into a hidden text field.
So my hidden text field code is -
<form name=Data>
<input type=hidden id=colour name=colour size=7 maxlength=7>
</form>
I then have my table of icons. So what I want to achieve is that when someone clicks 'teal.png' it changes the value of the text field to 'teal'.
Can someone point me in the right direction on how best to achieve this please?
Select the background colour below<br><br><table class="radioiconstable" width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="custom/icons/teal.png"></td>
<td><img src="custom/icons/grey.png"></td>
<td><img src="custom/icons/green.png"></td>
<td><img src="custom/icons/evergreen.png"></td>
</tr>
<tr>
<td><img src="custom/icons/brightred.png"></td>
<td><img src="custom/icons/crimson.png"></td>
<td><img src="custom/icons/orange.png"></td>
<td><img src="custom/icons/yellow.png"></td>
</tr>
<tr>
<td><img src="custom/icons/sand.png"></td>
<td><img src="custom/icons/brown.png"></td>
<td><img src="custom/icons/navy.png"></td>
<td><img src="custom/icons/coolblue.png"></td>
</tr>
<tr>
<td><img src="custom/icons/sky.png"></td>
<td><img src="custom/icons/purple.png"></td>
<td><img src="custom/icons/pink.png"></td>
<td><img src="custom/icons/candyfloss.png"></td>
</tr>
</table>