I have a group of three radio buttons, each has a value 1 2 & 3. What I want to do is on the same page auto select one radio button (accomplished already) but each value with be some cost or number that will be echo'd on the bottom of the page (it is to show the price with shipping before user submits)
You can use some jQuery for this. <script language="javascript" type="text/javascript" > function some_function_name(e) { var value = $(e).val(); $(".div_class_for_total_price").html(value); } </script> Code (markup):