<!DOCTYPE html>
<html>
<head>
<script>
function disable_enable(){
if (document.all || document.getElementById){
if (document.test1.test2.disabled==true)
document.test1.test2.disabled=false
else
document.test1.test2.disabled=true
}
}
</script>
</head>
<body>
<form name="test1">
<p><input type="test" value="A Button" name="test2" disabled> <a
href="javascript:disable_enable()">Click here</a></p>
</form>
</body>
</html>
<html>
<head>
<script>
function disable_enable(){
if (document.all || document.getElementById){
if (document.test1.test2.disabled==true)
document.test1.test2.disabled=false
else
document.test1.test2.disabled=true
}
}
</script>
</head>
<body>
<form name="test1">
<p><input type="test" value="A Button" name="test2" disabled> <a
href="javascript:disable_enable()">Click here</a></p>
</form>
</body>
</html>
Comments
Post a Comment