formsubmit.html 429 B

12345678910111213141516
  1. <style>
  2. textarea#editor {
  3. display: block !important;
  4. width: 100%;
  5. height: 100px;
  6. margin-bottom: 20px;
  7. }
  8. </style>
  9. <form id="form" action="http://localhost/" method="post">
  10. <p>Editor textarea element (normally hidden): </p>
  11. <textarea name="editor" id="editor"><p>foo bar baz</p></textarea>
  12. <button type="submit">Submit form</button>
  13. </form>
  14. <br />
  15. <button id="submit-with-js">Submit by calling form.submit()</button>