1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP echo radio before submit

Discussion in 'PHP' started by l3l00, Mar 18, 2013.

  1. #1
    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)
    l3l00, Mar 18, 2013 IP
  2. D3Tek

    D3Tek Active Member

    Messages:
    137
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    50
    #2
    You can use some jQuery for this.

    Code (Text):
    1.  
    2.  
    3. <script language="javascript" type="text/javascript" >
    4.     function some_function_name(e) {
    5.         var value = $(e).val();
    6.         $(".div_class_for_total_price").html(value);
    7.     }
    8. </script>
    9.  
    D3Tek, Mar 18, 2013 IP