Retrieving Form Submit Content Before Submit
Is it possible to calculate form submit URL before submit of form? Currently I am doing it by this way: var form = $('#myForm'); var action = form.attr('action'); var params = {};
Solution 1:
Do you mean something like this:
var form = $('form');
var formAction = form.attr('action');
var result = formAction + '?' + form.serialize();
More info: http://api.jquery.com/serialize/
Post a Comment for "Retrieving Form Submit Content Before Submit"