deanes02
11-03-2006, 11:35 AM
i need to make a textbox in html readonly and not readonly based on certain choices
if(PaperName=='Examiner')
{
document.getElementById('Papername').readOnly="True";
}
else
{
document.getElementById('Papername').readOnly="False";
}
The problem is that once the readonly attribute is set to true it does not seem to unset to false.
if(PaperName=='Examiner')
{
document.getElementById('Papername').readOnly="True";
}
else
{
document.getElementById('Papername').readOnly="False";
}
The problem is that once the readonly attribute is set to true it does not seem to unset to false.