Saved X
Google login
SignUp with Email
X

How to remove disable from input onclick

theindreshverma ( Added  Sep 28, 09:02 pm )
Login

input onclick not working, you can use button

<h2 align="center">Remove input disabled onclick</h2>

<input type="text" value="This is input." id="in" disabled>

<p><button onclick="rdisable()">Remove disabled</button></p>

<script>
function rdisable() {
    document.getElementById("in").removeAttribute("disabled");
}
</script>

Sourcecode Tags

More Sourcecodes

More Sourcecodes