Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- var method;
- method = method || 'POST';
- var form = document.createElement("form");
- form.setAttribute("method", method);
- form.setAttribute("action", '/');
- var hiddenField = document.createElement("input");
- hiddenField.setAttribute("type", "hidden");
- hiddenField.setAttribute("name", 'joe');
- hiddenField.setAttribute("value", '31');
- form.appendChild(hiddenField);
- console.log(form);
- document.body.appendChild(form);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement