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

    Likes Received:
    Best Answers:
    Trophy Points:
    You can use some jQuery for this.

    <script language="javascript" type="text/javascript" >
        function some_function_name(e) {
            var value = $(e).val();
    Code (markup):
    D3Tek, Mar 18, 2013 IP