There are two buttons on my page: the first one is currently disabled, and the second one is supposed to enable the first button. That's the plan. Button 1:
$(document).ready(function() {
$('#click').click(function() {
document.getElementById("submit-disabled").disabled = false;
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="submit" id="submit-disabled" name="cusubmit" value="Update" class="btn btn-primary" disabled />
<input id="click" type="button" value="Enable" class="btn btn-primary" />
After clicking on button 2, the "disabled" attribute is removed from button 1, but it remains disabled...
Any suggestions or ideas on how to resolve this issue?