PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You are developing a customer web form that includes the following HTML.
<input id=”txtValue” type=”text” />
A customer must enter a valid age in the text box prior to submitting the form.
You need to add validation to the control.
Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

6 Comments on “Which code segment should you use?

  1. Firefox360 says:

    @Alex, no it is not B. B checks only whether or not the input is empty. D checks if a number is entered. Okay the regular expression of D is not completely correct, but it is the answer that approaches the correct answer the most.




    0



    0

Leave a Reply