Hi



2 questions - looking at my code below,



1 - how can I select a specific item to appear in the "top drop down box" (currently the first item listed is the one that appears)?



2 - The first item is simply a header - how can I prevent customers accidentally "purchasing" this header?



Thanks



Denis









<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&i=Round-15&cl=xxxxx&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

Design:<br/>

<select name="o1">

<option value="Choose Your Design">Choose Your Design</option>

<option value="Classic 15 Inch Round Cushion 2 for $31.95">Classic 15 Inch Round Cushion 2 for $31.95</option>

<option value="Autumn 15 Inch Round Cushion 2 for $31.95">Autumn 15 Inch Round Cushion 2 for $31.95</option>

<option value="Bonaire 15 Inch Round Cushion 2 for $31.95">Bonaire 15 Inch Round Cushion 2 for $31.95</option>

<option value="Chicago 15 Inch Round Cushion 2 for $31.95">Chicago 15 Inch Round Cushion 2 for $31.95</option>

<option value="Capri 15 Inch Round Cushion 2 for $31.95">Capri 15 Inch Round Cushion 2 for $31.95</option>

<option value="Manhattan 15 Inch Round Cushion 2 for $31.95">Manhattan 15 Inch Round Cushion 2 for $31.95</option>

<option value="Austin 15 Inch Round Cushion 2 for $31.95">Austin 15 Inch Round Cushion 2 for $31.95</option>

<option value="Atlanta 15 Inch Round Cushion 2 for $31.95">Atlanta 15 Inch Round Cushion 2 for $31.95</option>

</select>

<br/>

<input type="image" src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this.parentNode);"/>

</form>

  • created

    Sep '10
  • last reply

    Sep '10
  • 1

    reply

  • 795

    views

  • 2

    users

  • 3

    links

Add an OPTION tag like this between your SELECT tag and first OPTION tag:



<option selected disabled>&darr;Pick one&darr;</option>



The "selected" attribute means it will be selected by default when the page loads, and the "disabled" attribute means it cannot be selected when the buyer clicks open the menu. The part after that you can customize if you wish to determine what's shown for that item in the menu (the &darr; I provided in my example above adds a down-arrow symbol :^).