Recently, I updated the CSS style for an input button on my website. However, after making these changes, the prop('disabled',true)
function no longer works as expected (it had worked perfectly before the CSS modifications).
Here is the HTML code snippet:
<div id="navigation">
<button id="nextButton" type="button" name="nextButton">Next</button>
</div>
This is the jQuery code I am using:
$('#nextButton').prop('disabled',true);
And here is the updated CSS code for the button styling:
button{
background: #cfe2f3;
background: -webkit-linear-gradient(#cfe2f3, #d0e0e3);
background: linear-gradient(#cfe2f3, #d0e0e3);
border: 0.5px solid #000;
border-radius: 5px;
color: #000;
display: inline-block;
padding: 8px 20px;
font: normal 700 18px/1 "Calibri", sans-serif;
text-align: center;
text-shadow: none;
}
My goal is to disable clicking on the Next button.