if(condition true) { textbox should be readonly } else{ textbox should be editable }
document.form1.txt1.disabled=true; document.form1.txt1.readonly=true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)