Im using the radio button layout for my e-junkie Buy Now button... I would like one of the radio buttons to be selected by default... because right now, if you visit the page and simply choose buy now you get a notice that "Product Combination does not exist" since a radio button has not been selected.



Is this possible?



Here is the code I am using for the radio buttons.



Thanks.



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

<br/>

Quantity: <input type="text" name="quantity" size="3" value="1" border="1"/>

<br><input type=radio name="o1" value="Instant MP3 Download"> Instant MP3 Download $9.99<br>

<input type=radio name="o1" value="Purchase Physical MP3 CD"> Purchase Physical MP3 CD* $13.99<br>

<input type=radio name="o1" value="Purchase 4 Audio CD Set"> Purchase 4 Audio CD Set $24.99<br>

<hr>

*MP3 CD's are compatible with computers, iPods, and many newer CD players bearing the MP3 logo.

<input type="image" src="http://hearthewritings.com/dev/wp-content/themes/theme1410/images/Buy-Button2.png" border="0" alt="Add to Cart" class="ecejc_thkbx" onClick="javascript:return EJEJC_lc(this.parentNode);"/>

</form>

<br>

  • created

    Jun '12
  • last reply

    Jun '12
  • 1

    reply

  • 1.0k

    views

  • 1

    user

  • 3

    links

I figured it out... simply add "checked on the option you want selected by default.. so in this case:



<input type=radio name="o1" value="Instant MP3 Download" CHECKED> Instant MP3 Download $9.99<br>



That makes the option selected by default.