WordPress.org

Ready to get started?Download WordPress

Forums

PHP Code for posts
Javascript (2 posts)

  1. sue@NOS
    Member
    Posted 11 months ago #

    Can I use JavaScript with the php code for posts plugin?

    http://wordpress.org/extend/plugins/php-code-for-posts/

  2. sue@NOS
    Member
    Posted 11 months ago #

    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>

  3. <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
  4. <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" />

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.