James Shook wrote:
Quote:
I'd like to use a custom image in a form that would function as a
radio button. I've found a script that will send a click from a
graphic to the radio button, but how can I do this without the real
radio button being visible? |
Something like this?
<script type="text/javascript">
function getValue(formName,fieldName,fieldValue) {
document[formName][fieldName].value = fieldValue
}
</script>
<form name="formName" id="formName" method="post" action="page.asp">
<a href="javascript
:;"
onclick="getValue('formName','hiddenFieldName','va lue one');">
<img src="radio1.gif" height="16" width="16" alt="my radio button" /></a>
<a href="javascript
:;"
onclick="getValue('formName','hiddenFieldName','va lue two');">
<img src="radio2.gif" height="16" width="16" alt="my radio button" /></a>
<input type="hidden" name="hiddenFieldName" id="hiddenFieldName" />
</form>
--
kindler chase
http://www.ncubed.com
Home of SuperInvoice's Fortress of Solitude
news://news.ncubed.com/support
n3 Support Group