$.post and load target page
I currently use .append to create a form with hidden fields dynamically, and submit it. however i would like to use
- $.post instead like $.post("http://www.google.com", { name: "John", time: "2pm" } );
but i need to load page the data was sent to just like a normal .submit but i am not sure how to do this? if anyone could help it would be much appreciated.
Script I currently use
- $('#PaymentBox').append('<form name="PayMent" id="PayMent" action="' + url + '" method="GET"><input type="hidden" name="Aount" value="English"></form>');