si claro:
La funcion "acciones" es la q llamo en el onclick con la llamada
Código:
onclick="acciones('2',infoGrupos)"
Código:
function acciones(indice, infoGrupos) {
seleccion("div"+indice);
mostrarInfo((indice-1), infoGrupos);
};
function mostrarInfo(grupo,infoGrupos) {
var infoDIV = document.getElementById("info");
var tablaDIV = document.getElementById("tab_info");
tablaDIV.removeChild(infoDIV);
var info = document.createElement("div");
info.setAttribute("class", "informacion");
info.setAttribute("id", "info");
var div;
var txtTit;
var span;
var TxtInf;
div = document.createElement("div");
txtTit = document.createTextNode("Nombre:");
div.appendChild(txtTit);
span = document.createElement("span");
txtInf = document.createTextNode(infoGrupos[grupo][0]);
span.appendChild(txtInf);
div.appendChild(span);
info.appendChild(div);
....
y ya sigue el codigo de la funcion... oye voy a cenar, ahora vuelvo!!