How can i disable all fields on a form and enable only one using code, without putting all field names in the code except one which is to be disabled.
How can i disable all fields on a form and enable only one using code, without putting all field names in the code except one which is to be disabled.
To disable all form elements inside 'target', use the :input selector which matches all input, textarea, select and button elements. $("#target :input"). prop("disabled", true)
To disable all form elements inside 'target', use the :input selector which matches all input, textarea, select and button elements. $("#target :input"). prop("disabled", true)