Created
April 2, 2020 06:15
-
-
Save camilamoreiradev/3f27f241d75456a25c61722bdb1e4de4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//função | |
function setAttributes(el, attrs) { | |
for (var key in attrs) { | |
el.setAttribute(key, attrs[key]); | |
} | |
} | |
//chamada da função | |
setAttributes(inputFile, { "id": idName, "class": "scFormObjectOdd", "type": "text", "value": idName }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment