MCQ
Write a statement to give value of input text field which is in jsl form to the variable ‘x’?
  • A
    x document.js1.name.value;
  • B
    var x =js1.name.value;
  • var x= document.j1.name.value;
  • D
    var x = jsl.name;

Answer

Correct option: C.
var x= document.j1.name.value;
var x= document.j1.name.value;

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free