Getting selected radio button value

Discussion in 'JavaScript' started by projectWORD, Aug 7, 2008.

  1. #1
    Hi,
    I have 9 radio buttons and I need to get the value for the radio button that is selected.
    I am using php then running javascript function using AJAX.

    So I basically need to get the value of the selected radio button which I can then pass to my php script.

    Thanks in advance
    Jamie
     
    projectWORD, Aug 7, 2008 IP
  2. mallorcahp

    mallorcahp Peon

    Messages:
    141
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This loops through all the radio buttons in the form ('myform' in this case but change to your form id) and adds the selected one to string in the form or querystring ...

     
    mallorcahp, Aug 7, 2008 IP