I have an HTML form in which I would like to log the name attribute of each input element in the console.
I have tried the following, but it only gives any type of jquery object blown from "stuff".
$ ('input'). Each (function () {console log ($ (this) .attr ('name'));};
The functions you post will, in fact, return all values for all inputs After setting the property 'name' and doing this, it will return the entire array of elements that match your selector, 'input', which may be that you are saying 'thing bloated with the object'.
Comments
Post a Comment