get all attributes of input values jquery code example
Example 1: get all input values by class jquery
$(".test .text-field").each(function() {
alert($(this).val());
});
Example 2: get list of all attributes jqery
function getAttributes ( node ) {
var i,
attributeNodes = node.attributes,
length = attributeNodes.length,
attrs = {};
for ( i = 0; i < length; i++ ) attrs[attributeNodes[i].name] = attributeNodes[i].value;
return attrs;
}