Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

event.target.submitForm() not working in HTML5

Avatar

Avatar
Validate 10
Level 5
tarekahf
Level 5

Likes

32 likes

Total Posts

409 posts

Correct Reply

10 solutions
Top badges earned
Validate 10
Validate 1
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Validate 10
Level 5
tarekahf
Level 5

Likes

32 likes

Total Posts

409 posts

Correct Reply

10 solutions
Top badges earned
Validate 10
Validate 1
Give Back 50
Give Back 5
Give Back 3
View profile
tarekahf
Level 5

27-05-2016

I tried to use event.target.submitForm() to submit HTML5 form to tomcat server, and it seems that it has not effect.

However, a regular submit button is submitting the form.

I just wanted to make sure that my findings are correct. I prefer to use Javascript to submit the HTML5 instead of changing the target url of the submit button and invoking the click event.

Appreciate your feedback.

Tarek

Accepted Solutions (0)

Answers (0)