Check out this code snippet:
<div id="whatever">
/* Setting up a button to add HTML code in this div using jQuery */
/* Now looking to create another button that will prevent further additions to the div with the existing HTML intact */
</div>
Is there a way to achieve this without using jQuery, maybe with CSS? I tried the following:
$(".whatever").attr("disabled", "disabled");
$(".whatever").prop("disabled", "disabled");
After some research, I discovered that only form elements have a disabled attribute.