Basic JavaScript Question:
Download Questions PDF

How to disable an HTML object?

Answer:

To disable an HTML object in JavaScript use below line of code...

document.getElementById("myObject").disabled = true;

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
How to find radio button selection when a form is submitted?To write messages to the screen without using "document.write()"?