Web Analytics Made Easy -
StatCounter Multiple drop down boxes - CodingForum


No announcement yet.

Multiple drop down boxes

  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple drop down boxes

    Hiya folks...

    working thru a form that has dropdown boxes ... 1 for month and 2 for day, with a text box to enter the year.

    I can get the first drop down box to set up and work properly, but the 2nd dropdown box does not form and I get a listing of all the day options 1 - 31

    Can anyone point out what I am overlooking for making the 2nd box?

    Appreciate any help...

    This is the section that is messing up

    <p>Date of Trip</p>
    <p><span class="validationtext" id="validationtext_month">
    <select id="id_month" class="fieldtripform validationtext_Month required" name="month">

    <option value="" selected="selected"></option>
    <option value="Jan">January</option>
    <option value="Feb">February</option>
    <option value="Mar">March</option>
    <option value="Apr">April</option>
    <option value="May">May</option>
    <option value="Jun">June</option>
    <option value="Jly">July</option>
    <option value="Aug">August</option>
    <option value="Sep">September</option>
    <option value="Oct">October</option>
    <option value="Nov">November</option>
    <option value="Dec">December</option>

    <span class="validationtext" id="validationtext_day">
    <select id="id_day" class="fieldtripform validationtext_day required" name="day">

    <option value="" selected="selected"></option>
    <option value="01">01</option>
    <option value="02">02</option>
    <option value="03">03</option>
    <option value="04">04</option>
    <option value="05">05</option>
    <option value="06">06</option>
    <option value="07">07</option>
    <option value="08">08</option>
    <option value="09">09</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>

    <input type="text" name="tripyear" value="year"></p>

    With code as above I get this
    Date of Trip

    *Month dropdown box* 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 *year text box*

    Hope I am making sense in my description

  • #2
    Looking at this now...
    Be yourself. No one else is as qualified.


    • #3
      For starters, you are missing the </select> tags. Might work in MSIE. Won't work in most other browsers.

      Fix that first. Does problem go away?
      Be yourself. No one else is as qualified.


      • #4
        thank you Pedant... I knew it would be something silly