+ 1
Error: Cannot find inner HTML property of null
in my code there like that , <form id=fm ></form>
4 Réponses
+ 1
You can use jQuery Like this:
$('#myform').html();
0
Where is your JavaScript code?
0
var elm = document.getElementsByTagName("form");
elm[0].innerHTML = "string";
OR
var elm = document.getElementById("fm");
elm.innerHTML = "string";
0
m.b. id should be between " or ' symbols?