Jump to content

geoffdude

Caspio Ninja
  • Posts

    59
  • Joined

  • Last visited

  • Days Won

    3

Community Answers

  1. geoffdude's post in Checkbox Onchange Unchecks Different Checkbox was marked as the answer   
    OK - I circled around to this one more time, and really looked at the code that was provided by iren (thx again).
     
    I discovered there was an extra "." at the end of the first if statement ".checked.==false)"... I removed it, tested, and it now works. So.. thanks very much again Iren.
     
     
    Here's the working code.
     
    <SCRIPT LANGUAGE="JavaScript">
    function ocProductsCheck() {
    if (document.getElementById("InsertRecordOC_print").checked==false)
       {
        document.getElementById("InsertRecordOC_newsletter").checked=false;
       }
    }
    document.getElementById("InsertRecordOC_print").onchange=ocProductsCheck;
    </script>
     
    Best regards,
     
    Geoff
×
×
  • Create New...