Answers for "get list of all attributes jqery"

0

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;
}
Posted by: Guest on July-23-2020

Code answers related to "get list of all attributes jqery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language