I have my HTML block as:
<p onchange="changed(this.value)"><span id="output" style="font-weight: bold" ></span></p>
My function changed(str) is :
function changed(str)
{
console.log("inside changed!!")
}
and I am changing the value of p in the javascript by the following statement:
document.getElementById("output").innerHTML="You are the first user, waiting for User 2....";
The problem is I see the value of my block changing but I can see in the console that the control never gets in my function changed().
I have tried moving the onchange="changed(this.value)"
to inside span. But I still don't get the message from the function in the console