Jump to content

[SOLVED] making an option on a form non-choosable (easy)


A2xA

Recommended Posts

I need to know how to make an option on a drop-down form non-choosable. Sort of just to be there to either space it or to be a menu option.

 

Example:

 

I wan't

 

Wii Games (non choosable)

game..etc

Nintendo DS Games (non choosable)

so on..

 

here's my form code right now.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>

<body>
<div style="text-align: left;"><img style="width: 656px; height: 125px;" alt="" src="http://i27.tinypic.com/2n24pag.png"><br>
<br>
</div>
<br>

<form action="insert.php" method="post">
<SELECT NAME="game" SIZE="1">
<OPTION SELECTED>Wii Games
<OPTION>Medal of Honor 2
<OPTION>Super Mario Strikers
<OPTION>Super Smash Bros. Brawl (Soon)
<OPTION>DS Games
<OPTION>Mario Kart DS
<OPTION>Metroid Prime Hunters
</SELECT>
Friend Code<input name="fc" type="text">
Comments <input name="comments" type="text">
       <input type="submit">
</form>


</body>
</html>

it didn't work?

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>

<body>
<div style="text-align: left;"><img style="width: 656px; height: 125px;" alt="" src="http://i27.tinypic.com/2n24pag.png"><br>
<br>
</div>
<br>


<form action="insert.php" method="post">
<SELECT NAME="game" SIZE="1">
<DISABLED SELECTED>Select a Game!
<DISABLED>Wii Games
<OPTION>Medal of Honor 2
<OPTION>Super Mario Strikers
<OPTION>Super Smash Bros. Brawl (Soon)
<DISABLED>DS Games
<OPTION>Mario Kart DS
<OPTION>Metroid Prime Hunters
</SELECT>
Friend Code<input name="fc" type="text">
Comments <input name="comments" type="text">
       <input type="submit">
</form>


</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.