| 0 comments ]


<html>

  <head>

    <title></title>

    <meta name="GENERATOR" content="Quanta Plus">

    <meta http-equiv="Content-Type" content="text/html; charset=">


    <script language="JavaScript" type="text/javascript">

function show(id){

    var objArr=document.getElementsByTagName("div")

    for(i=1;i<=objArr.length;i++){

        if(i==id){

            document.getElementById(i).style.display="block";


        }else{

            document.getElementById(i).style.display="none";

        }

    }

}   


</script>

  </head>

  <body>

    <FORM method="POST" name="frm_select">

      <table>

        <tbody>


          <tr>

            <td>

             
<SELECT name="cmb_elements"
onchange="show(document.frm_select.cmb_elements.value)">

              <option  selected="selected">

                 Select


              </option><option value="1">

                 form

              </option><option value="2">

                 input box

              </option><option value="3">


                 select box

              </option><option value="4">

                 check box

              </option>

              </SELECT>

            </td>


          </tr>

        </tbody>

      </table>

      <table>

        <TR>

          <TD>


            <div  id="1" style="display:none">

               formADSFDSFDFDSFDSAFDASFdfa

            </div>

            <div id="2" style="display:none">

               inputADSFDSFDFDSFDSAFDASFdfa


            </div>

        <div id="3" style="display:none">

               select ADSFDSFDFDSFDSAFDASFdfa

            </div>

        <div id="3" style="display:none">


               select ADSFDSFDFDSFDSAFDASFdfa

            </div>

          </TD>

        </TR>

      </table>

    </FORM>


  </body>

</html>

0 comments

Post a Comment

Please put your comments here. your questions, your suggestions, also what went wrong with me.