enable/disable Save button for multiple fields in a from
posted 3 years ago
I want to enable/disable save button after 8 fields validation in my page.
I have old technique:- that is keep a boolean flag for every field(in our case 8 flags), update corresponding field(when the fileld is valid/invalid) and check, if all the flags are true then only "enable/disable" save button.
My question is do we have any better approach, like using one variable.