I need to create a input
within a cell of a table
using JavaScript. I created a <a>
tag with name="ex2"
<tr><p>
<td id="secTd"><label for="cAp"><a id="num">02</a> <a id="texto">Time</a></label></td>
<td id="tecTd"><a name="ex2"></a></td>
</p></tr>
And I'm using this JavaScript code to write "val1" inside this tag.
document.getElementById("exibe1").innerHTML = "val1";
No error message appears, same thing if I try with a input
.