disable input onclick html code example
Example 1: how to remove disable from input onclick
<script type="text/javascript">
$(function() {
// disable all the input boxes
$(".input").attr("disabled", true);
// add handler to re-enable input boxes on click
$("td:has(.input)").click(function() {
$(".input", this).removeAttr("disabled");
});
});
</script>
Example 2: disable onclick
pointer-events: none;
cursor: default;