I am trying to disable multiple fields in a checkbox survey at the same time. Is it possible to select by multiple classes on same the div? I tried below but its not working. The code works with one class.
function surveyInit(){
$("div[class*='addressLine1', class*='addressLine2'] input" ).attr('disabled', 'disabled');
}
addressLine1or is it exactlyaddressLine1?.attr("disabled", "disabled")works, but.prop("disabled" true)is simpler, and lets you use.prop("disabled", false)to undo it (instead of.removeAttr("disabled")).