Support » Plugin: PHP Code for posts » Javascript

Viewing 1 replies (of 1 total)
  • sue@NOS

    (@suenos)

    The javascript function is not working

    <script type=”text/javascript”>

    function DisplayBussinessFeild(id)
    {
    if (id.value == “Bussiness”)
    {
    document.getElementById(“businessname”).style.visibility = “visible”;
    document.getElementById(“lblbusName”).style.visibility = “visible”;
    isBusiness = true;
    }
    else if (id.value == “Residential”)
    {
    document.getElementById(“businessname”).style.visibility = “hidden”;
    document.getElementById(“lblbusName”).style.visibility = “hidden”;
    }
    }
    </script>

  • <span style=”color: red;”>*</span><input type=”radio” name=”busorres” id=”buss” value=”Bussiness” onclick=”DisplayBussinessFeild(this)”/>Business
    <input type=”radio” name=”busorres” id=”res” value=”Residential” checked=”checked” onclick=”DisplayBussinessFeild(this)”/>Residential
  • <li id=”lblbusName” style=”visibility:hidden;”><label for=”businessName”><span style=”color:red”>*</span>Bussiness Name</label>
    <input type=”text” name=”bussinessName” id=”businessName” onclick=”ClearField(this)” class=”txt requiredField” />

Viewing 1 replies (of 1 total)
  • The topic ‘Javascript’ is closed to new replies.