There are 2 HTML ways:
1) <input type="text" disabled>
makes the text grey if you have a value in it
<input type="text" disabled value="grey text">
2) <input type="text" readonly>
The javascript way is:
<HTML>
<HEAD>
</HEAD>
<BODY onload="Disab()">
<script language="javascript">
function Disab()
{
document.webform2.t1.disabled = true
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.