On a website there is going to be a form that the user can fill out. However this form is also going to function as a search form as well. Certian conditions may disable changing of what is in the field. I know how to enable or disable each one indivually, but my question is, is there a way to have all of them enable or disabled based on some settings? It would save a lot of time being able to do that, rather than going to each individual one, checking the settings and disabling or enabling there.
This is how I disable them:
disable="disabled" onfocus="this.blur();" style="background: #e2e2e2"