Basic function question with passing parameters
Ok, I'm still learning the basics of JS, and I'm stuck in passing parameters via a function.
Why is this script not showing up the number 31 in the test div ?
If I do alert(content); or alert(place); it alerts the right stuff, so it passes the value correctly.
Perhaps the problem is by getting the element by ID. I already tried with different types of ''"", without '", with + with escape things\, but I obviously have no clue what the right approach would be for this.
document.getElementById("place").innerHTML = content;