Results 1 to 2 of 2

Thread: Simple dropdown menu dinamic default value... any help!?

  1. #1
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple dropdown menu dinamic default value... any help!?

    Hello people,
    I have two dropdown menus with the month and year respectively. I would like to set the default month and year options to the current date at every moment.
    I guess we can call it a dynamic default value or something.
    CODE:
    <li>Select the Date
    <select name="date">
    <option>Jan</option>
    <option>Feb</option>
    <option>Mar</option>
    <option>Apr</option>
    <option>May</option>
    <option>Jun</option>
    <option>Jul</option>
    <option>Aug</option>
    <option>Sep</option>
    <option>Oct</option>
    <option>Nov</option>
    <option>Dec</option>
    </select>
    <select name="year">
    <option>2008</option>
    <option>2007</option>
    <option>2006</option>
    <option>2005</option>
    <option>2004</option>
    <option>2003</option>
    <option>2002</option>
    <option>2001</option>
    </select>

    I hope it is possible to do this with js. Can you please help me out???
    Cheers
    Fred

  2. #2
    Join Date
    Mar 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

Bookmarks

Posting Permissions

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