In addition to clicking on the radio item itself, I'd like to allow users to select a radio item by clicking on the image that is associated with that radio item.
Shouldn't it be something like this? Thanks for any help.
Shouldn't it be something like this? Thanks for any help.
Code:
<script>
function doSelect(rval)
{
if(document.frmtheme.theme.value=rval;)
{document.frmtheme.theme.checked;}
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="white">
<tr>
<td width="27"><input type="radio" name="theme" value="0"<cfif NOT isDefined('page.theme_id')> checked</cfif>></td>
<td width="99">Default</td>
<td width="274"><img src="../../../../insurance/pics/themes/theme_#prod_code#_default.gif" width="200" height="150" onClick="doSelect(0);"></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td width="27"><input type="radio" name="theme" value="2"<cfif isDefined('page.theme_id') AND page.theme_id IS '2'> checked</cfif>></td>
<td width="99">Blue</td>
<td width="274"><img src="../../../../insurance/pics/themes/theme<cfif prod_code is 'pose'>_#prod_code#</cfif>_blue.gif" width="200" height="150" onClick="doSelect(2);"></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td><input type="radio" name="theme" value="3"<cfif isDefined('page.theme_id') AND page.theme_id IS '3'> checked</cfif>></td>
<td>Brick</td>
<td><img src="../../../../insurance/pics/themes/theme<cfif prod_code is 'pose'>_#prod_code#</cfif>_brick.gif" width="200" height="141" onClick="doSelect(3);"></td>
</tr>
</table>