Which code segment should you use?

You are developing a web form that includes the following HTML.
<input id=”txtValue” type=”text” />
You need to ensure that a value is entered into txtValue before the form is submitted.
Which code segment should you use?

You are developing a web form that includes the following HTML.
<input id=”txtValue” type=”text” />
You need to ensure that a value is entered into txtValue before the form is submitted.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 2

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


Bilbo

Bilbo

The text say nothing about “name”. Sure it’s not B?

Bilbo

Bilbo

the B one doesn’t make sense, so it must be A