Enable & Disable a Div and its elements in Javascript [duplicate]
You should be able to set these via the attr() or prop() functions in jQuery as shown below: jQuery (< 1.7): // This will disable just the div $(“#dcacl”).attr(‘disabled’,’disabled’); or // This will disable everything contained in the div $(“#dcacl”).children().attr(“disabled”,”disabled”); jQuery (>= 1.7): // This will disable just the div $(“#dcacl”).prop(‘disabled’,true); or // This will … Read more