This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

I am confused .. How can I place this?


  1. zishan876
    Member

    <script type="text/javascript">
    function removeElement()
    {
    if(document.getElementById("p2").value=="No" || document.getElementById("p2").value=="none"){
    document.getElementById("p1").style.display="none";
    document.getElementById("p3").style.display="";
    }
    if(document.getElementById("p2").value=="Yes"){
    document.getElementById("p1").style.display="";
    document.getElementById("p3").style.display="none";
    }
    }
    function inti()
    {
    document.getElementById("p1").style.display="none";
    document.getElementById("p3").style.display="none";
    if(document.getElementById("p2").value=="none"){
    document.getElementById("p3").style.display="none";
    }

    }
    </script>
    <tr>
    <td valign="top" nowrap>Is this correct<font color=red>*</font> </td>
    <td> <select id="p2" name='correction' onchange="removeElement()">
    <option value='none'>----</option>
    <option value='Yes'>Yes</option>
    <option value='No'>No</option>
    </select>
    </td>
    </tr>
    <tr id="p3">
    <td valign="top">Time that it Starts: <font color=red>*</font> </td>
    <td><input type="text" name="hr" size=2> : <input type="text" name="min" size=2> PM</td>
    </tr>

    </table>
    <table border="1" id="p1">

    Having the table based off the dropdown option field...
    where do I place this???

    Posted 15 years ago #
  2. donflor
    Member

    like where you got that code?

    Posted 15 years ago #
  3. yuniar

    That code above is not coming from MachForm.
    Where did you get that code?

    Let me know what you are trying to do.


    MachForm Founder

    Posted 15 years ago #

RSS feed for this topic

Reply