Jump to content

selecting option on menu A changes the options available in menu B


newbeee

Recommended Posts

Please can someone help me here as i have no idea what i need to do or where to start.

 

this is the method i as trying to do...

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form name="form2" method="post" action="">
  <p>
    <select name="select1">
      <option value="L1 - VALUE 1">L1 - OPT 1</option>
      <option value="L1 - VALUE 2">L1 - OPT 2</option>
      <option value="L1 - VALUE 3">L1 - OPT 3</option>
    </select>
  </p>




<? // if OPT 1 is selected in the select1 pulldown then the following is placed the select2 options ?>
  <p>
    <select name="select2-1">
      <option value="L2 - VALUE 1">L2 - OPT 1</option>
      <option value="L2 - VALUE 2">L2 - OPT 2</option>
      <option value="L2 - VALUE 3">L2 - OPT 3</option>
    </select>
  </p>




<? // if OPT 2 is selected in the select1 pulldown then the following is placed the select2 options ?>
  <p>
    <select name="select2-2">
      <option value="L3 - VALUE 1">L3 - OPT 1</option>
      <option value="L3 - VALUE 2">L3 - OPT 2</option>
      <option value="L3 - VALUE 3">L3 - OPT 3</option>
    </select>
  </p>




<? // if OPT 3 is selected in the select1 pulldown then the following is placed the select2 options ?>
  <p>
    <select name="select2-3">
      <option value="L4 - VALUE 1">L4 - OPT 1</option>
      <option value="L4 - VALUE 2">L4 - OPT 2</option>
      <option value="L4 - VALUE 3">L4 - OPT 3</option>
    </select>
  </p>
</form>
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.