Hello,

I am a total newbie with JQuery. What I am trying to do is to submit a form that contains a radio button. I want to get the value of the checked radio button. I have found a script that gets the value of each input in the page but it doesn't get the value of the checked radio buttons ,checkboxes or multiple select box. I want to adapt my script to submit textboxes, selectboxes and the B]checked [/B] radio buttons ,checkboxes or multiple select box.

so the data would include for example:

textbox1=textvalue&check=1&check=5&multiple=4&multiple=5&radio=firstoption etc

Code JavaScript:
<script type="text/javascript" charset="utf-8">
      // let's start the jQuery while I wait.
      // step 1: onload - capture the submit event on the form.
      $(function() { // onload...do
        $('#submitform').submit(function() {
 
 
          // now we're going to capture *all* the fields in the
          // form and submit it via ajax.
 
          // :input is a macro that grabs all input types, select boxes
          // textarea, etc.  Then I'm using the context of the form from 
          // the initial '#contactForm' to narrow down our selector
          var inputs = [];
          $(':input', this).each(function() {
            inputs.push(this.name + '=' + escape(this.value));
          })
         alert(inputs);
          // now if I join our inputs using '&' we'll have a query string
          jQuery.ajax({
            data: inputs.join('&'),
            url: "insert_article.php",
			type: "POST",
            timeout: 2000,
            error: function() {
               alert("failure");
            },
            success: function(r) { 
 
			  alert("success");
            }
          }) // checkout [url]http://jquery.com/api[/url] for more syntax and options on this method.
 
          // re-test...
          // by default - we'll always return false so it doesn't redirect the user.
          return false;
        })
      })
    </script>