How to set Textbox control to Readonly in Javascript?

 Posted by vishalneeraj-24503 on 12/27/2013 | Category: JavaScript Interview questions | Views: 1230 | Points: 40
Answer:

Set the readonly property of textbox control to true/false.

For Example:-

document.getElementById("txt_description").readOnly = true;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response