<html>
<head>
<title>How to disable a text field in HTML Form Using Onclick Event</title>
<script>
function dis(){
var d=document.getElementById('input');
d.disabled=true;
}
</script>
</head>
<body>
<form>
<input type="text" id="input" onblur="javscript:dis()">
</form>
</body>
</html>
100% Working Code
Follows Us On Facebook
<head>
<title>How to disable a text field in HTML Form Using Onclick Event</title>
<script>
function dis(){
var d=document.getElementById('input');
d.disabled=true;
}
</script>
</head>
<body>
<form>
<input type="text" id="input" onblur="javscript:dis()">
</form>
</body>
</html>
100% Working Code
Follows Us On Facebook