Extract and set form values through the DOM—no frameworks required! https://github.com/TheoryOfNekomata/formxtra
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

single-input-with-double-button-submitters.html 369 B

1234567891011121314151617
  1. <!DOCTYPE html>
  2. <html lang="en-PH">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. </head>
  7. <body>
  8. <form>
  9. <label>
  10. <span>Hello</span>
  11. <input type="text" name="hello" value="Hi" />
  12. </label>
  13. <button name="action" value="Foo" type="submit">Foo</button>
  14. <button name="action" value="Bar" type="submit">Bar</button>
  15. </form>
  16. </body>
  17. </html>