Results 1 to 3 of 3

Thread: [Javascript] MM_jumpMenu - repeted values

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    156

    [Javascript] MM_jumpMenu - repeted values

    HTML Code:
    <script type="text/JavaScript">
    <!--
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
      eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0;
    }
    //-->
    </script>
    HTML Code:
                  <select name="List" onchange="MM_jumpMenu('parent',this,0)">
                    <option value="" >Shrubs</option>
                    <option value="?1" >Shrub 01</option>
                    <option value="?2" >Shrub 02</option>
                    <option value="?3" >Shrub 03</option>
                  </select>
    If someone clicks on the drop down menu the title of the drop down appers in the drop down list! how can I remove this repitition?

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: [Javascript] MM_jumpMenu - repeted values

    Remove <option value="" >Shrubs</option>... is that what you mean?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    156

    Re: [Javascript] MM_jumpMenu - repeted values

    Yes but I want to show 'Shrubs' in the inactive box before it gets clicked on?

    so the box shows...

    Shrubs

    then it gets clicked and shows...

    Shrub 01
    Shrub 02
    Shrub 03

    at the moment when it is clicked it shows...

    Shrubs --<because this is first in the option list>
    Shrub 01
    Shrub 02
    Shrub 03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width