BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CIW Exam 1D0-735 Topic 8 Question 61 Discussion

Actual exam question for CIW's 1D0-735 exam
Question #: 61
Topic #: 8
[All 1D0-735 Questions]

Consider the following code:

The processform() function is not executed when the submit button is pressed. What change should be made to correct this?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Twana
4 months ago
Can you imagine someone trying to use the onfocus event to submit a form? That's like trying to start a car with a toothpick!
upvoted 0 times
...
Hana
4 months ago
This is a classic case of a mismatched event handler. Option B FTW!
upvoted 0 times
...
Shaquana
4 months ago
Haha, whoever wrote this code must have been having a bad day. Clearly, the onsubmit event is the way to go. Option B is the answer.
upvoted 0 times
Christa
2 months ago
Yep, option B is the correct answer in this case.
upvoted 0 times
...
Launa
2 months ago
Definitely, that will fix the issue with the processform() function not being executed.
upvoted 0 times
...
Tom
3 months ago
I agree, the onsubmit event handler should be added to the
tag.
upvoted 0 times
...
Tiffiny
3 months ago
It's a simple fix, just need to make sure the event handler is in the right place.
upvoted 0 times
...
Lavelle
3 months ago
Definitely, that will fix the issue with the processform() function not being executed.
upvoted 0 times
...
Cristal
3 months ago
I agree, the onsubmit event handler should be added to the tag.
upvoted 0 times
...
...
Charlene
4 months ago
I see your point, Donette. I think I will go with A) as well. It makes more sense to me now.
upvoted 0 times
...
Donette
4 months ago
But adding the onsubmit event handler to the tag directly triggers the function when the submit button is pressed.
upvoted 0 times
...
Jerry
4 months ago
I disagree, I believe the correct answer is B) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
Ronny
4 months ago
Ah, I see the issue now. The form is not properly linked to the processform() function. Option B is the way to go here.
upvoted 0 times
Reyes
3 months ago
Good to know for future reference. Thanks for the explanation!
upvoted 0 times
...
Gregoria
3 months ago
Exactly, it will ensure the function is executed when the submit button is pressed.
upvoted 0 times
...
Emeline
4 months ago
That makes sense. It will link the form to the processform() function.
upvoted 0 times
...
Dorcas
4 months ago
Option B is correct. The onsubmit event handler should be added to the tag.
upvoted 0 times
...
...
Donette
4 months ago
I think the correct answer is A) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
Felicitas
5 months ago
The processform() function is not being executed because the onsubmit event handler is not properly attached to the form. The correct answer is B, adding the onsubmit event handler to the tag.
upvoted 0 times
Doretha
4 months ago
C) The onfocus event handler should be added to the tag.
upvoted 0 times
...
Onita
4 months ago
B) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
Latricia
5 months ago
A) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
...

Save Cancel