Web Analytics Made Easy -
StatCounter Select Menu: On Select show Textbox - CodingForum

Announcement

Collapse
No announcement yet.

Select Menu: On Select show Textbox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Select Menu: On Select show Textbox

    Forum,

    Hello. I'm trying to figure out a way that if an option is selected in a select menu, it will show a textbox. I'm almost there it seems.

    So basically, in my select menu (name=genres), if a visitor selects option Other (value=other), and only if it selects that option, would I like to show a textbox (name=otherGenre). Any suggestions?

    Code:
      <tr>
        <td colspan="2"> 
            <select name="genres" onChange="this.form.otherGenre.style.display=(this.selected='other')?'inline':'none'">
    		  <option value=""></option>
              <option value="action_adventure">Action &amp; Adventure</option>
              <option value="anime_animation">Anime &amp; Animation</option>
              <option value="children_family">Children &amp; Family</option>
              <option value="classics">Classics</option>
              <option value="comedy">Comedy</option>
              <option value="documentary">Documentary</option>
              <option value="drama">Drama</option>
              <option value="educational">Educational</option>
              <option value="horror">Horror</option>
              <option value="independent">Independent</option>
              <option value="martial_arts">Martial Arts</option>
              <option value="music_karoake">Music &amp; Karoake</option>
              <option value="romance">Romance</option>
              <option value="sci_fi_fantasy">Sci Fi &amp; Fantasy</option>
              <option value="special_interest">Special Interest</option>
              <option value="spirituality_religion">Spirituality &amp; Religion</option>
              <option value="thriller">Thriller</option>
              <option value="other">Other</option>
    		  </select>
          </td>
      </tr>
      <tr>
        <td colspan="2"><input type="text" size=18 name="otherGenre" style="display:none" /></td>
      </tr>
    Thanks,
    3960AD

  • #2
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
    
    <html>
    
    <head>
      <title></title>
    <script language="JavaScript" type="text/javascript">
    <!--
    
    function Other(obj){
     obj.form.otherGenre.style.display='none';
     if (obj.value=='other'){
      obj.form.otherGenre.style.display='block';
     }
    }
    
    //-->
    </script>
    
    </head>
    
    <body>
    <form name="fred" >
    <table width=200 >
     <tr>
        <td colspan="2">
            <select name="genres" onChange="Other(this);">
    		  <option value=""></option>
              <option value="action_adventure">Action &amp; Adventure</option>
              <option value="anime_animation">Anime &amp; Animation</option>
              <option value="children_family">Children &amp; Family</option>
              <option value="classics">Classics</option>
              <option value="comedy">Comedy</option>
              <option value="documentary">Documentary</option>
              <option value="drama">Drama</option>
              <option value="educational">Educational</option>
              <option value="horror">Horror</option>
              <option value="independent">Independent</option>
              <option value="martial_arts">Martial Arts</option>
              <option value="music_karoake">Music &amp; Karoake</option>
              <option value="romance">Romance</option>
              <option value="sci_fi_fantasy">Sci Fi &amp; Fantasy</option>
              <option value="special_interest">Special Interest</option>
              <option value="spirituality_religion">Spirituality &amp; Religion</option>
              <option value="thriller">Thriller</option>
              <option value="other">Other</option>
    		  </select>
          </td>
      </tr>
      <tr>
        <td colspan="2"><input type="text" size=18 id="otherGenre" name="otherGenre" style="display:none" /></td>
      </tr>
    </table>
    </form>
    </body>
    
    </html>
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

    Comment


    • #3
      your a good man. thanks.

      it works perfect...

      Comment


      • #4
        Mayday, Mayday

        It seems once I added your code, it doesn't work correctly...

        Here is my entire code, please disregard the sloopiness. I have yet to add CSS to it.

        Code:
        <!--  Uncomment for survey
        <? include "connect.inc.php"; ?>
        <?php
        session_start();
        $_SESSION['language'] = $_POST['language'];
        ?> 
        -->
        
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Online Survey</title> 
        
        
        <script language="JavaScript" type="text/JavaScript">
        <!--
        
        function Other(obj){  //select menu 
         obj.form.otherGenre.style.display='none';
         if (obj.value=='other'){
          obj.form.otherGenre.style.display='block';
         }
        }
        
        function onlyNumbers(inputString) //could use for zipCode
        {
          var searchForNumbers = /\D+\_+\W+\s+\S+/
          (searchForNumbers.test(inputString)) ? return false : return true;
        } 
        
        
        function MM_reloadPage(init) {  //reloads the window if Nav4 resized
          if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
            document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
          else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
        }
        MM_reloadPage(true);
        
        function MM_preloadImages() { //v3.0
          var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
            var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
            if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        }
        
        function MM_findObj(n, d) { //v4.01
          var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
            d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
          if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
          for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
          if(!x && d.getElementById) x=d.getElementById(n); return x;
        }
        
        function MM_nbGroup(event, grpName) { //v6.0
          var i,img,nbArr,args=MM_nbGroup.arguments;
          if (event == "init" && args.length > 2) {
            if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
              img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
              if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
              nbArr[nbArr.length] = img;
              for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
                if (!img.MM_up) img.MM_up = img.src;
                img.src = img.MM_dn = args[i+1];
                nbArr[nbArr.length] = img;
            } }
          } else if (event == "over") {
            document.MM_nbOver = nbArr = new Array();
            for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
              if (!img.MM_up) img.MM_up = img.src;
              img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
              nbArr[nbArr.length] = img;
            }
          } else if (event == "out" ) {
            for (i=0; i < document.MM_nbOver.length; i++) {
              img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
          } else if (event == "down") {
            nbArr = document[grpName];
            if (nbArr)
              for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
            document[grpName] = nbArr = new Array();
            for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
              if (!img.MM_up) img.MM_up = img.src;
              img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
              nbArr[nbArr.length] = img;
          } }
        }
        //-->
        </script>
        </head>
        <body bgcolor="#CCCCCC" topmargin="0" onLoad="MM_preloadImages('images/search_r1_c2_f2.jpg','images/languages/english/header/visitor_navigation_r2_c6_f3.jpg','images/languages/english/header/visitor_navigation_r2_c6_f2.jpg','images/languages/english/header/visitor_navigation_r2_c6_f4.jpg','images/languages/english/header/visitor_navigation_r3_c8_f2.jpg','images/languages/english/header/visitor_navigation_r2_c2_f3.jpg','images/languages/english/header/visitor_navigation_r2_c2_f4.jpg','images/languages/english/header/visitor_navigation_r2_c4_f3.jpg','images/languages/english/header/visitor_navigation_r2_c4_f2.jpg','images/languages/english/header/visitor_navigation_r2_c4_f4.jpg','images/languages/english/header/visitor_navigation_r2_c8_f3.jpg','images/languages/english/header/visitor_navigation_r2_c8_f2.jpg','images/languages/english/header/visitor_navigation_r2_c8_f4.jpg')">
        <table width="762" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="5" height="26" background="images/language_bg.jpg"></td>
        </tr>
          <tr>
            <td height="120" valign="bottom" background="images/top_bg.gif"><table width="762" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="50"><table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="310" height="50"><img src="images/logo_hotspot.gif" width="101" height="54" border="0" usemap="#Map"></td>
                    </tr>
                </table>
                  </td>
              </tr>
              <tr>
                <td><table border="0" cellpadding="0" cellspacing="0" width="762">
          <!-- fwtable fwsrc="survey_navigation_1.png" fwbase="navigation.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
          <tr>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="33" height="1" border="0"></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="62" height="1" border="0"></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="7" height="1" border="0"></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="54" height="1" border="0"></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="7" height="1" border="0"></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="68" height="1" border="0"></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="531" height="1" border="0"></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="1" height="1" border="0"></td>
          </tr>
          <tr>
            <td colspan="7"><img name="navigation_r1_c1" src="images/navigation_r1_c1.jpg" width="762" height="16" border="0" alt=""></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="1" height="16" border="0"></td>
          </tr>
          <tr>
            <td rowspan="2"><img name="navigation_r2_c1" src="images/navigation_r2_c1.jpg" width="33" height="49" border="0" alt=""></td>
            <td><a href="welcome.htm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','navigation_r2_c2','images/navigation_r2_c2_f2.jpg','images/navigation_r2_c2_f4.jpg',1);" onClick="MM_nbGroup('down','navbar1','navigation_r2_c2','images/navigation_r2_c2_f3.jpg',1);"><img name="navigation_r2_c2" src="images/navigation_r2_c2.jpg" width="62" height="25" border="0" alt=""></a></td>
            <td rowspan="2"><img name="navigation_r2_c3" src="images/navigation_r2_c3.jpg" width="7" height="49" border="0" alt=""></td>
            <td><a href="survey.htm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','navigation_r2_c4','images/navigation_r2_c4_f4.jpg','images/navigation_r2_c4_f4.jpg',1);" onClick="MM_nbGroup('down','navbar1','navigation_r2_c4','images/navigation_r2_c4_f3.jpg',1);"><img name="navigation_r2_c4" src="images/navigation_r2_c4_f3.jpg" width="54" height="25" border="0" alt=""></a></td>
            <td rowspan="2"><img name="navigation_r2_c5" src="images/navigation_r2_c5.jpg" width="7" height="49" border="0" alt=""></td>
            <td><a href="contact_us.htm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','navigation_r2_c6','images/navigation_r2_c6_f2.jpg','images/navigation_r2_c6_f4.jpg',1);" onClick="MM_nbGroup('down','navbar1','navigation_r2_c6','images/navigation_r2_c6_f3.jpg',1);"><img name="navigation_r2_c6" src="images/navigation_r2_c6.jpg" width="68" height="25" border="0" alt=""></a></td>
            <td rowspan="2"><img name="navigation_r2_c7" src="images/navigation_r2_c7.jpg" width="531" height="49" border="0" alt=""></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="1" height="25" border="0"></td>
          </tr>
          <tr>
            <td><img name="navigation_r3_c2" src="images/navigation_r3_c2_2.jpg" width="62" height="24" border="0" alt=""></td>
            <td><img name="navigation_r3_c4" src="images/navigation_r3_c4_2.jpg" width="54" height="24" border="0" alt=""></td>
            <td><img name="navigation_r3_c6" src="images/navigation_r3_c6.jpg" width="68" height="24" border="0" alt=""></td>
            <td><img src="images/spacer.gif" alt="" name="undefined_2" width="1" height="24" border="0"></td>
          </tr>
        </table>
        
        </td>
              </tr>
            </table></td>
          </tr>
          <tr valign="top">
            <td height="549" background="images/generic_bg.jpg"><div align="right">
              <table width="735" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><form name="english_survey" action="addsurvey.php" method="post">
        <p>&nbsp;</p>
        <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30" colspan="2"><font face=tahoma size=2>1. How old are you?</font></td>
          </tr>
          <tr>
            <td colspan="2"><font face=verdana size=1>
              <select name="age">
        	    <option value="blank"></option>
                <option value = "18-24">18-24</option>
                <option value = "25-35">25-35</option>
                <option value = "36-46">36-46</option>
                <option value = "47+">47+</option>
                    </select>
            </font></td>
          </tr>
          <tr>
            <td height="30" colspan="2" valign="bottom"><font face=tahoma size=2>2. 
        
        
        What race/ethnicity are you?
        
        </font></td>
          </tr>
          <tr>
            <td valign="top">      <font face=verdana size=1>&nbsp;
              
        </font>
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
        <TD valign="middle"><INPUT type="checkbox" tabindex="3" name+"chkOther" id="chk" value="1" onclick="this.form.etn.style.display=(this.checked)?'inline':'none'" />
          <font face="verdana">
          <label for="chk"><font size="2">Asian</font></label>
          </font></TD>
                </tr>
                <tr>
                  <TD valign="middle"><input type="checkbox" name="checkbox" value="checkbox">
                    <font face=tahoma size=2>Black </font></TD>
                  </tr>
                <tr>
                  <TD valign="middle"><input type="checkbox" name="checkbox" value="checkbox">
                    <font face=tahoma size=2>Indian </font></TD>
                  </tr>
                <tr>
                  <TD valign="middle"><input type="checkbox" name="checkbox" value="checkbox">
                    <font face=tahoma size=2>Latino</font></TD>
                  </tr>
                <tr>
                  <TD valign="middle"><input type="checkbox" name="checkbox" value="checkbox">
                    <font face=tahoma size=2>White</font></TD>
                  </tr>
                <tr>
                  <TD valign="middle"><font face=tahoma size=2>
                    <INPUT type="checkbox" tabindex="3" name+"chkOther" id="chk" value="1" onclick="this.form.Other.style.display=(this.checked)?'inline':'none'" />
                    Other</font></TD>
                  </tr>
              </table>
              </td>
          <td width="622"><table height="150" border="0" cellpadding="0" cellspacing="0">
            <tr><td></td></tr><tr>
              <td height="99" valign="top"><select name="ethnicity" id="etn" style="display:none"/>
                <option value="Chinese">Chinese</option>
                  <option value="Japanese">Japanese</option>
                  <option value="Korean">Korean</option>
                  <option value="Taiwanese">Taiwanese</option>
                  <option value="Vietnamese">Vietnamese</option>
                  <option value="Other Asian">Other </option>
              </td>
            </tr>
            <tr>
              <td height="40" valign="top" ><input type="text" size=18 name="Other" style="display:none" /></td>
            </tr>
          </table></td>
          </tr>
          <tr valign="top">
            <td height="20" colspan="2"><font face=tahoma size=2>3. What is your zip code?</font></td>
          </tr>
          <tr>
            <td height="30" colspan="2"><input name="zipCode" type="text" id="zipCode" size="5" maxlength="5"></td>
          </tr>
          <tr>
            <td height="30" colspan="2"><font face=tahoma size=2>4. What is your favorite movie genre?</font></td>
          </tr>
          <tr>
            <td height="30" colspan="2"> 
             <select name="genres" onChange="Other(this);">
        		  <option value=""></option>
                  <option value="action_adventure">Action &amp; Adventure</option>
                  <option value="anime_animation">Anime &amp; Animation</option>
                  <option value="children_family">Children &amp; Family</option>
                  <option value="classics">Classics</option>
                  <option value="comedy">Comedy</option>
                  <option value="documentary">Documentary</option>
                  <option value="drama">Drama</option>
                  <option value="educational">Educational</option>
                  <option value="horror">Horror</option>
                  <option value="independent">Independent</option>
                  <option value="martial_arts">Martial Arts</option>
                  <option value="music_karoake">Music &amp; Karoake</option>
                  <option value="romance">Romance</option>
                  <option value="sci_fi_fantasy">Sci Fi &amp; Fantasy</option>
                  <option value="special_interest">Special Interest</option>
                  <option value="spirituality_religion">Spirituality &amp; Religion</option>
                  <option value="thriller">Thriller</option>
                  <option value="other">Other</option>
        		  </select><input type="text" size=18 id="otherGenre" name="otherGenre" style="display:none" />
              </td>
          </tr>
          <tr>
            <td height="30" colspan="2"><font face=tahoma size=2>5. Where do you usually rent movies/TV Series from?</font></td>
          </tr>
          <tr>
            <td height="30" colspan="2"><font face=verdana size=1>
              <select name="videoRental" id="videoRental">
        	    <option value="blank"></option>
                <option value="large_retail">Blockbuster, Hollywood Video, or large rental chain</option>
                <option value="local">Local video store</option>
                <option value="online">Online (Netflix, Blockbuster, etc)</option>
                <option value="i_dont_rent">I don’t rent movies or TV Series</option>
                          </select>
            </font></td>
          </tr>
          <tr>
            <td height="30" colspan="2"><font face=tahoma size=2>6. About how many DVD Movies and TV Series do you rent per month?</font></td>
          </tr>
          <tr>
            <td height="30" colspan="2">
              <select name="rentPerMonth" id="rentPerMonth">
                <option value="blank"></option>
        		<option value="0-2">0-2</option>
                <option value="3-4">3-4</option>
                <option value="5-7">5-7</option>
                <option value="7+">7+</option>
                    </select>
          </td>
          </tr>
          <tr>
            <td height="30" colspan="2"><font face=tahoma size=2>7. Do you watch Movies in a language other than English? </font></td>
          </tr>
          <tr>
            <td colspan="2">
        	 <INPUT type="radio" name="radiobutton_7a" value="radiobutton_7" onclick="this.form.just.style.display=(this.checked='radiobutton_7a')?'inline':'none'" />
        	 <font size="2" face="tahoma">Yes</font></td>
          </tr>
          <tr>
           <td colspan="2"><input name="radiobutton_7a" type="radio" value="radiobutton"> 
           <font size="2" face="tahoma">No</font></td>
          </tr>
          <tr>
            <td height="30" colspan="2" ><table width="680" border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td height="30"><font face=tahoma size=2>What is your favorite foreign movie? </font>
                  </td>
              </tr>
              <tr>
                <td><input name="textfield" type="text" size="30"></td>
              </tr>
              <tr>
                <td height="30"><font size="2" face="tahoma">Would you rather watch a subtitled or dubbed versions of foreign movies? </font></td>
              </tr>
              <tr>
                <td><input name="radiobutton_7b" type="radio" value="radiobutton">
                  <font face=tahoma size=2> subtitled</font></td>
              </tr>
              <tr>
                <td><input name="radiobutton_7b" type="radio" value="radiobutton">
                  <font face=tahoma size=2>dubbed</font></td>
              </tr>
            </table>      <p>&nbsp;</p> 
              </td>
          </tr>
          <tr>
            <td height="30" colspan="2"><font face=tahoma size=2>8. Do you watch Movies in a language other than English? </font></td>
          </tr>
          <tr>
            <td colspan="2"><input name="radiobutton_8a" type="radio" value="radiobutton">
              <font size="2" face="tahoma">Yes</font> </td>
          </tr>
          <tr>
            <td colspan="2"><input name="radiobutton_8a" type="radio" value="radiobutton">
              <font size="2" face="tahoma">No</font></td>
          </tr>
          <tr>
            <td colspan="2"><table width="680" border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td height="30"><font face=tahoma size=2>What is your favorite foreign TV Series? </font>
                    <input type="text" size=18 name="just" style="display:none" /></td>
              </tr>
              <tr>
                <td><input name="textfield" type="text" size="30"></td>
              </tr>
              <tr>
                <td height="30"><font size="2" face="tahoma">Would you rather watch a subtitled or dubbed versions of these shows? </font></td>
              </tr>
              <tr>
                <td><input name="radiobutton_8b" type="radio" value="radiobutton">
                    <font face=tahoma size=2> subtitled</font></td>
              </tr>
              <tr>
                <td><input name="radiobutton_8b" type="radio" value="radiobutton">
                    <font face=tahoma size=2>dubbed</font></td>
              </tr>
              <tr>
                <td height="30"><font size="2" face="tahoma">Would you be interested in renting a foreign TV Series on DVD?
        
        </font></td>
              </tr>
              <tr>
                <td><input name="radiobutton_8c" type="radio" value="radiobutton">
                  <font face=tahoma size=2> Yes</font></td>
              </tr>
              <tr>
                <td><input name="radiobutton_8c" type="radio" value="radiobutton">
                  <font face=tahoma size=2>No</font></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
        </table>
                  
                    </form></td>
                </tr>
              </table>
            </div></td>
          </tr>
         <tr >
             <td height="22" colspan="2" background="images/footer.jpg"><table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
                 <tr>
                   <td>&nbsp; </td>
                 </tr>
               </table></td>
          </tr>
         <tr >
           <td height="28" colspan="2" background="images/bot_bg.jpg" align="center"></td><table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr>
               <td> 
        ©2005</td>
             </tr>
           </table></td>
         </tr>
        </table>
        <map name="Map">
          <area shape="rect" coords="1,1,100,53" href="welcome.htm">
        </map>
        </body>
        </html>
        Thanks,
        3960AD

        Comment


        • #5
          you have a naming conflict use

          <select name="genres" onchange="zxcOther(this);">

          function zxcOther(obj){ //select menu
          obj.form.otherGenre.style.display='none';
          if (obj.value=='other'){
          obj.form.otherGenre.style.display='block';
          }
          }


          The are a number of oter anomilies on your page

          eg

          name+"chkOther"
          Vic

          God Loves You and will never love you less.

          http://www.vicsjavascripts.org/Home.htm

          If my post has been useful please donate to http://www.operationsmile.org.uk/

          Comment


          • #6
            Thanks again.. :=) I thought I had the naming distinct.. dammit..

            Yeah I know about the other adnormalities...

            Comment

            Working...
            X