It is not clear why with 2 and 3 examples, I do not get the list as in the first? Logically, it should give me a list .. Instead, I get the first value from the entire list.
How to display a list of Id attribute values from each form?
1.var setOfForms = $("#ATemplate > form"); console.log(setOfForms); 2.var setOfForms2 = $("#ATemplate > form").attr("id"); console.log(setOfForms2); // Почему я не получаю спсиок значений атрибута ID ? 3.var forms = $("form").attr("id"); console.log(forms); // Почему я не получаю спсиок значений атрибута ID ? 