DRAG DROP
You are developing a web page that includes the following HTML.
You need to ensure that the email element is enabled only if the user selects the IT Support check box.
Which CSS selectors should you use? (To answer, drag the appropriate selector to the correct location. Each
selector may be used once, more than once, or not at all. You may need to drag the split bar between panes or
scroll to view content.)
Select and Place:
Explanation:
The disabled property sets or returns whether an email field should be disabled, or not.A disabled element is unusable and un-clickable. Disabled elements are usually rendered in gray by default in
browsers.
Example
Disable an email field:
document.getElementById(“myEmail”).disabled = true;
Input Email disabled Property
the answer is fine but the code has few errors.
this should be the correct code:
function enable() {
if(document.getElementById(‘choc’).checked){
document.getElementById(‘eMail’).disabled=false;
}else{
document.getElementById(‘eMail’).disabled=true;
}
}