Friday, February 14, 2014

How to disable a text field in HTML Form Using Onblur Event

<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