Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #attributes #jqery
ADD COMMENT
Topic
Name
4+5 =