Hi, I'm trying to generate a table but when making the parameter of the function text, I've had a lot of problems, this is the code:
elemento = elemento +'</br>'+'<span onclick="borrar('+libros[i].autores[j]+');">'+libros[i].autores[j]+'</span>';
It generates it for me that way and it should be: "John Stamos" as String in the parameter
please help
The error is due to the concatenations, you must take into account when it is necessary the single quotes and the double quotes.