Which code segment should you use?

You are developing application web form by using HTML5 and JavaScript.
You need to prevent users from submitting form data more than once.
Which code segment should you use?

You are developing application web form by using HTML5 and JavaScript.
You need to prevent users from submitting form data more than once.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 1

Your email address will not be published. Required fields are marked *

two × 3 =


brkyctn

brkyctn

* this, in disable(this), refers to the clicked button.
* The disabled attribute is a boolean attribute.
When present, it specifies that the element should be disabled.
A disabled input element is unusable and un-clickable.
The disabled attribute can be set to keep a user from using the element until some other condition has
been met (like selecting a checkbox, etc.). Then, a JavaScript could remove the disabled value, and make the
element usable.
Reference: HTML disabled Attribute