This file contains 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
$(document).ready(function(){ | |
//funcion para añadir un objeto de atributos a mi elemento padre | |
const agregarAtributos = (miElemento, obj_Atri) => { | |
for (let i in obj_Atri){ | |
if(obj_Atri.hasOwnProperty(i)) miElemento.setAttribute(i, obj_Atri[i]); | |
} | |
}; |
This file contains 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
$(document).ready(function(){ | |
//funcion para añadir un objeto de atributos a mi elemento padre | |
const agregarAtributos = (miElemento, obj_Atri) => { | |
for (let i in obj_Atri){ | |
if(obj_Atri.hasOwnProperty(i)) miElemento.setAttribute(i, obj_Atri[i]); | |
} | |
}; |
This file contains 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
$(document).ready(function(){ | |
//funcion para añadir un objeto de atributos a mi elemento padre | |
const agregarAtributos = (miElemento, obj_Atri) => { | |
for (let i in obj_Atri){ | |
if(obj_Atri.hasOwnProperty(i)) miElemento.setAttribute(i, obj_Atri[i]); | |
} | |
}; |