2 Replies Latest reply on Aug 17, 2006 8:24 AM by DIY_Lobotomy

    Radio button code...

    DIY_Lobotomy Level 1
      I have never used radio buttons before, so I'm sure this code is wrong, but I was wondering if anyone can help fix it. I just want to have a trace of which radio button instance is selected when a "submit_btn" button is pressed. There are four radio buttons on the stage, all with instance names, and all in the group "radioGroup". If possible, I'd ideally like to get their DATA in numerical format. here's what I have now that keeps returning "undefined" no matter which radio button is selected:

      function submitClick(){
      submit_btn.addEventListener("click", submitClick);