Jquery ajax POST label/value pair

Posted by aus_fas on Stack Overflow See other posts from Stack Overflow or by aus_fas
Published on 2012-09-13T21:36:57Z Indexed on 2012/09/13 21:37 UTC
Read the original article Hit count: 218

Filed under:
|

I want to pass label/value pair in Ajax .POST but cannot find any solution. Any help please.

        $.ajax({
            url:"allfields.php",
            type:"POST",
    //      dataType:"json",
            data: $("#frmRequest").serialize(),
            success: function(msg){
                alert("Form Submitted: "+ msg);
                return msg;

              },
             error: function() {
            alert('Error occured');
             }
        });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ajax