I am getting all form elements which have the name attribute and I need to get the name. So I have;
$form.find("input[name], textarea[name]").each(function (index, value) {
console.log(value.attr("name"));
})
But I get the error:
TypeError: value.attr is not a function
What am I missing?