You work as a developer at ABC.com. The ABC.com network consists of a single domain named
ABC.com. You make use of CSS3 and HTML5 for development purposes.
You have been instructed to create an web form that should be configured to allow users totender
form data once only. You have written the following code:
1. <body>
2. <input id=”btnSubmit” type=”button” value=”Submit” onclick=”disable (this)” />
3. <input id=”btnCancel” type=”button” value=”Submit” onclick=”disable (this)” />
4.
5.<body>
You need to insert the required code at line 4 to complete the code.
Which of the following actions should you take?
A.
You should consider inserting the following code at line 4:
<script>
function enable (cntrl)
{
cntrl.enabled = true;
}
</script>
B.
You should consider inserting the following code at line 4:
<script>
function disable (cntrl)
{
cntrl.disabled = false;
}
</script>
C.
You should consider inserting the following code at line 4:
<script>
function disable (cntrl)
{
cntrl.disabled = true;
}
</script>
D.
You should consider inserting the following code at line 4:
cntrl.disabled = true;
Explanation: