I am looking for a method to Enable and Disable the
div id=”dcalc” and Its children.
<div id="dcalc" class="nerkheArz"
style="left: 50px; top: 150px; width: 380px; height: 370px;
background: #CDF; text-align: center" >
<div class="nerkh-Arz"></div>
<div id="calc"> </div>
</div>
I want to Disable them at loading the page and then by a click i can enable them ?
This is what i have tried
document.getElementById("dcalc").disabled = true;
You should be able to set these via the
attr()orprop()functions in jQuery as shown below:jQuery (< 1.7):
or
jQuery (>= 1.7):
or
or
Javascript:
or