Skip to content

Instantly share code, notes, and snippets.

@wireframeslayout
Created October 30, 2014 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wireframeslayout/41f34bce10aa5bdb2121 to your computer and use it in GitHub Desktop.
Save wireframeslayout/41f34bce10aa5bdb2121 to your computer and use it in GitHub Desktop.
formを作成してpostする
var json = {
test: "test"
}
json = JSON.stringify(json);
var form = "<form action='' method='post'>";
form += "<input type='hidden' name='json' value='" + json +"' />";
form += "</form>";
$("#wrap").append(form);
from.submit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment