Hi all.

I can find no documentation on how to access the form data in a beforeSubmit
function in the Form plugin. I can see in Firebug that all my fields is
populated correct and it's no problem to fetch the data on the server. But I
have no idea how the syntax is in the beforeSubmit function. I feel like
I've tried everything now... including:
// validate function
function validate(formData, jqForm){
 //alert($("[EMAIL PROTECTED]:checked").val());
 var formElment = jqForm[0];
 var queryString = $.param(formData);

   // jqForm is a jQuery object encapsulating the form element.  To access
the
   // DOM element for the form do this:
   // var formElement = jqForm[0];
  alert(formData.name['rdoType'])
 //alert(this.rdoType.value);
     //alert('About to submit: \n\n' + queryString);
 // alert('About to submit: \n\n' + $().each(formData,
function(i,n){alert("Name: " + i +
 // ", Value " + n); }));
....

Thanks in advance!
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to