2 Replies Latest reply: Mar 13, 2012 7:00 PM by ottz0 RSS

    Select box values

    ottz0 Community Member

      I have a select box drop down menu and when clicked it goes off straight away to a URL.

       

      I want to try to hide the option from being passed from the dropdown menu to the top of the original select menu.

       

      Eg: select your form:

       

      Form 1

      Form 2

      Form3

       

      Form  1, 2 or 3 then gets passed to the top select your form..

       

      How can I block this from just keeping the select your form at the top

       

      Thanks

        • 1. Re: Select box values
          Ken Binney CommunityMVP

          Code please

          • 2. Re: Select box values
            ottz0 Community Member

            <div id="box-wrap-options">

                                            <select name="options" class="round_sb" onchange="window.open(this.options[this.selectedIndex].value,'_top')">

                                              <option selected="selected">Super options</option>

                                              <option value="http://www.yahoo.com/">Yahoo</option>

                                              <optgroup label="Group 1">

                                                <option>Blah</option>

                                                <option>Rumor</option>

                                              </optgroup>

                                              <option>Long dropdown test</option>

                                              <option>Long dropdown test</option>

                                              <optgroup label="Group 2 long name long name">

                                                <option disabled="disabled">Lorem ipsum</option>

                                                <option>Whatever Whatever...</option>

                                              </optgroup>

                                              <option>Long dropdown test</option>

                                              <optgroup label="Disabled optgroup" disabled="disabled">

                                                  <option>Long dropdown test</option>

                                              </optgroup>

                                            </select>

                                      </div>