Just a quick jquery question. I have a form with a number of form-groups in it. I need to iterate over the form-groups, and find a particular element in each one. The form-groups consist of 4 input/select elements, each with a different name:
dialog.find(".form-group").each((index) => {
console.log($(this).find("input[name='active']"));
if ($(this).find("input[name='active']").checked) {
console.log("FOO");
}
})
dialog definitely exists, and it can certainly find form-group objects, but running .find("input[name='active'].val()")
consistently returns undefined.