This is a function that is part of a larger website I am designing. In a general sense I am trying to perform a Javascript function that will un-disable the disabled input HTML boxes from the click of a 'yes" button.
After clicking the "yes" button it seems it is not working.
Here is my code.
<html>
<head>
<script language="javascript" type="text/javascript">
function myFunction() {
document.getElementById("first").disabled = false;
}
</script>
</head>
<body>
Perform Operation?: <br>
<button onClick=myFunction()>Yes</button
<div>
First Number: <input type="number" id="firstnumber" value=0 disabled><br>
Second Number: <input type="number" id="secondnumber" value=0 disabled><br>
</div>
</body>