/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Forms with multiple input buttons

I am having a bit of a problem with html and forms. I have a form with a few radio buttons, textboxs, etc. When submitted through one of the two submit buttons, a servlet runs. What I need to do is have another button (#3) on the form that runs a simple Javascript. Is this possible so that button 3 will not submit the form and run the javascript function using onclick property.

I understand that nested forms are out of the question, Any insight on this would be helpful.

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @Silverfoot 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.1,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...