How to remove disable from input onclick

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>

Related Sourcecode

More Sourcecode

×
Google login
SignUp with Email
X