• Hello.

    I’m developing a widget which has in his control panel in the widget panel a innerHTML call which doesn’t function.

    I’m really annoyed.

    var t = document.getElementById("idTableToAddRows");
    		var linkNum = t.rows.length - 1;
    			var x=t.insertRow(-1);
    			var y=x.insertCell(0);
    			var z=x.insertCell(1);
    			y.innerHTML='testing 1';
    			z.innerHTML='testing 2';

    When I try to find inside de code after have added the rows, the web page seems to have the rows but not shown. ie the result of the sentence
    alert(t.rows[2].innerHTML); is “testing 1” and “testing 2”.
    I really don’t know what I have to do, please could any one help me?

  • The topic ‘innerHTML and WordPress’ is closed to new replies.