/    Sign up×
Community /Pin to ProfileBookmark

call on two submit buttons script

hello, ok heres what i want to do…i would like a script that triggers two submit buttons, with two seperate names, one is Post and one is submit. They are also in two seperate forms, one is message, and one is getquestion. So..it looks like this.
—————————-

<form name=”message”>


<input type=”submit” name=”Post”>

</form>
——————————–

<form name=”getmessage”>


<input type=”submit” name=”submit”>

</form>
———-

Ok now what I would like is a button on this page, with the two above forms in it. Now this button would be pressed, and would automatically select both submit buttons on the page, and would submit each form at one time. A way to do this one at a time, automatically, would probably be ideal. In a nutshell, I just want to submit two different forms to their specfied paths, using via one button vs. two. If someone could help me figure this out, I would seriously be greatly appreciative. I think in order to do this, I must some how get the element by id, and set it off that way, that way i dont have to physically delete the submit buttons. Im not sure how to do that either, someone please help me out on this, i am totally stumped.

regards

Code One

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Code_One spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.9,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...