javascript - Post to entire document like a form using jquery? -
I wan't to pass a variable without obtaining php, therefore, I use the post with jquery I'm doing, but I can not write the result in the document (refresh all the pages)
Here's the code:
$ Attr ("href"), {returnto: $ (this) .attr ("rel")}, function (a) {$ (document) .html (a);} ); Return false;}); The document is not a place to write your result in the form of your meta envelope
Use the body rather than the HTML page:
$ ("body"). Html ("My answer is:" + a);
Comments
Post a Comment