PrepAway - Latest Free Exam Questions & Answers

Which five actions should you perform in sequence?

DRAG DROP
You create a webpage that includes the following HTML markup: (Line numbers are included for reference only.)

You need to ensure that a form cannot be submitted unless the INPUT element contains the word OK.
Which five actions should you perform in sequence? (To answer, move the appropriate actions from
the list of actions to the answer area and arrange them in the correct order.)

PrepAway - Latest Free Exam Questions & Answers

Answer: See the explanation.

Explanation:

Box 1:

Box 2:

Box 3:

Box 4:

Box 5:

6 Comments on “Which five actions should you perform in sequence?

  1. 11-4-a says:

    it also says when it contains the word ok, now it seems the value of the input needs to equal the word ok.

    Shouldn’t this be : if ($(‘input:first’).val().indexOf(“OK”) !== -1) {…} ?




    0



    0
  2. Syed Ajaz Akhter says:

    Type OK to validate form.

    $(“form”).submit(function() {
    if($(“input:first”).val().indexOf(“OK”) != -1) {
    console.log(“true”);
    }
    return false;
    });




    0



    0

Leave a Reply