r/JavaScriptTips • u/sgmike0297 • Sep 29 '21
Need help to use JavaScript to click submit button (without ID)
Need help to use JavaScript to click submit button (without ID), I try this but does not work :
docuement.querySelector('input[type*="submit"]').submit();
the form link is here:
https://docs.google.com/forms/d/e/1FAIpQLSfQiOnXWDwgBWtDu4kQKEFHM5XiZ5Sxb2bKfrp31BxpQKLbBQ/viewform
Hope someone can help me with the Javascript. Thanks
1
Upvotes
0
1
u/ScootMcBoot Sep 29 '21
Something like this might work: