Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

select defaults selection



10:41 am on Feb 4, 2011 (gmt 0)

Hi .

I am trying to find how to get a default selection so a user does not have to activtley click to get the option

<form name="form" method="POST" action="">
<select name="menu" size="5" class="news">

<option value="../archives/qsrarc/qsrarchive/2009/qsr2009.html">QSR 2009 </option>
<option value="../archives/qsrarc/qsrarchive/2008/qsr2008.html">QSR 2008 </option>
<option value="../archives/qsrarc/qsrarchive/2007/qsr2007.html">QSR 2007 </option>
<option value="../archives/qsrarc/qsrarchive/2006/qsr2006.html">QSR 2006 </option>
<option value="../archives/qsrarc/qsrarchive/2005/qsr2005.html">QSR 2005 </option>
<input type="button"
[document.form.menu.selectedIndex].value;" value="GO">

What i would like is for the top <option value="../archives/qsrarc/qsrarchive/2010/qsr2010.html">QSR 2010 </option> to become the default so that the user only has to click on the go button instead of click the selection then go , Is this possible help please


11:26 am on Feb 4, 2011 (gmt 0)

5+ Year Member

Simply add selected="selected" to the first option.


2:02 pm on Feb 4, 2011 (gmt 0)

Ok thanks i had completely missed that little nuget teach me to look a little harder next time Duh

Thanks pete

Featured Threads

Hot Threads This Week

Hot Threads This Month