1
116
I am attempting to use a checkbox to populate a hiden field based on checked
or unchecked. Having an issue with the script. Can someone take a look?
Thanks
David
<script>
function ifchecked01()
{
with (document.forms[0])
{
if (agen_RECUR.value == '')
hdnRECUR.value = "Open";
else (agen_RECUR.value = "ON")
hdnRECUR.value = "Recurring";
}
}
</script>
or unchecked. Having an issue with the script. Can someone take a look?
Thanks
David
<script>
function ifchecked01()
{
with (document.forms[0])
{
if (agen_RECUR.value == '')
hdnRECUR.value = "Open";
else (agen_RECUR.value = "ON")
hdnRECUR.value = "Recurring";
}
}
</script>