How can I disable div during web development?

118    Asked by Unnatigautam in Web-development , Asked on Jan 4, 2024

I have designed my website with a set of fields within a “div”. How can I disable the “div’’ and its content which are based on the actions of users like clicking a check box and even selecting an option from a drop-down menu by using JavaScript? 

Answered by Chloe Burgess

To dynamically disable “div” during web development and the content used in it in response to the action of the users such as clicking a checkbox or selecting an option from a drop-down by using JavaScript. Here is the approach given:-

HTML structure


   


Your Answer