[jQuery] jQuery ajaxSubmit(), how to send the form in a json format?
Hi guys, i just leanerd the existence of the ajaxSubmit jQuery plugin,
im wondering if there is a way to use the JSON both to send and
retrieve the requests.
I mean, no the plugin have the option 'dataType', that is used to
specify the format that the server will send back, but i need to send
the form as jquery to the server.
For example, if my form looks like:
<form name="mytest" action="mypage.php" method="get">
<input type="text" name="firstone" id="firstone" value="here some
text!" />
<input type="text" name="secondone" id="secondone" value="text in here
too" />
</form>
i'll love that the plugin will send a request like:
mypage.php?mytest=[{'firstone':'here some text!','secondone':'text in
here too'}]
Is it possible?