Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Dear Friends,

Please help me to complete below task.

I have a In active checkbox in my view. If user clicking on In active check box that page should be disabled(means all fields should be disabled).

I would appreciate if you provide step by step.

Thank you very much in advance.
Ali

What I have tried:

Dear Friends,

Please help me to complete below task.

I have a In active checkbox in my view. If user clicking on In active check box that page should be disabled(means all fields should be disabled).

I would appreciate if you provide step by step.

Thank you very much in advance.
Ali
Posted
Updated 12-Jun-16 20:41pm
Comments
Sergey Alexandrovich Kryukov 13-Jun-16 2:42am    
What have you tried so far?
—SA

1 solution

The method for recursive disabling and re-enabling of all the input elements on the page can be found in my article Modal Popup From Scratch.

Download the source code, locate the file "ModalPopup.js" and the function disableAll. First argument of this function is the list where all the disabled elements are gathered, later on, you can re-enable them. Second argument is the HTML element which should be skipped from disabling, with all its children, third argument is the parent element of all the controls to be disabled.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900