Select Boxes

  • herdhistory

    #5745

    Hi,

    Please be patient while I try to explain this. I have sidebar enabled on the right hand side of site (not live yet) In the sidebar I want the text widget placed there with 2 different select boxes. First select box will enable the user to select a season and soon as they click on the season it takes them right to the season page they selected. Below that, preferably in the same text widget I want another select box that will take them to a playoff season page when they click on it. Im not sure where Im going wrong. here is the code of javascript that I have in text widget

    <script type="text/javascript">// <![CDATA[
    function go(){
    location=
    document.Player.season.
    options[document.Player.season.selectedIndex].value
    }
    // ]]></script>

    <form name="Player">
    <select name="season" size="1" onchange="go()">
    <option value="">Season Stats</option>
    <option value="http://example.com/1994-95">1994-95 Player Stats</option>

    </form>

    This works no problem with the single drop down box but when I try to add another one with the same code It will not work.

    Help please.

    Im not sure if this is the right spot for this…sorry if not.

    Mod

    Kenneth John Odle

    #32607

    How are you organizing the seasons? As categories or as a single page/post? If so, you can probably accomplish this without Javascript.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.