suppose I have a form:
<form id="someform" action="some.php" method="get">
<input type="text" name="somename" />
<input type="text" name="othername" />
...
<input id="submitId" type="submit" value="OK" />
</form>
And I want to get the request string generated by this:
?somename=blabla&othername=blablabla&submit=OK
Can I get this without actually submitting the form?
$('#submitId').live('click', function(e) {
e.preventDefault();
//... what to do here?
});
Another one, if I have the request string, can I put them to the form? (reversed).
Thanks.
Try using http://api.jquery.com/serialize/