How to <if> this ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gomjaba
    Senior Member
    • Jan 2005
    • 970
    • 3.5.x

    How to <if> this ?

    I have the following three drop downs :


    HTML Code:
    <!-- Main -->
    <td width="30%" class="alt2"><b>Game</b></td>
    <td align="left" width="70%" class="alt1Active"> 
    <SELECT NAME="Game">
    <OPTION VALUE="Onslaught.ONSOnslaughtGame">Onslaught
    <OPTION VALUE="XGame.xDeathMatch">Deathmatch
    </SELECT> </td> </tr>
    <!-- / Main -->
    
    <!-- Deathmatch -->
    <td width="30%" class="alt2"><b>Map</b></td>
    <td align="left" width="70%" class="alt1Active">
    <SELECT NAME="Map">
    <OPTION VALUE="DM-Rankin">DM-Rankin
    <OPTION VALUE="DM-Morpheus3">DM-Morpheus3
    </SELECT> </td> </tr>
    <!-- / Deathmatch -->
    
    <!-- Onslaught -->
    <td width="30%" class="alt2"><b>Map</b></td>
    <td align="left" width="70%" class="alt1Active">
    <SELECT NAME="Map">
    <OPTION VALUE="ONS-Torlan">ONS-Torlan
    <OPTION VALUE="ONS-Dria">ONS-Dria
    </SELECT> </td> </tr>
    <!-- / Onslaught -->
    BUT: How can I use a <if> condition to show either the 2nd or the 3rd drop down depending on the first choice ?

    Lets say someone chooes Onslaught in the first drop down

    I would like to show the Onslaught drop down and the Deathmath not at all and the other way around
    I'm not under the alkafluence of inkahol like some thinkle peep I am!
  • DrSbaitso
    New Member
    • Jul 2006
    • 1

    #2
    JavaScript!
    (That's as much as I know)

    Comment

    • Colin F
      Senior Member
      • May 2004
      • 17689

      #3
      You can't use a template conditional, you'd have to use a piece of JavaScript code.
      Best Regards
      Colin Frei

      Please don't contact me per PM.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...