1
I am making a javascript to play the result of a query in a tag , however the query is not displayed in tag
. I am on the same page and calling the function by codebehide.
function preenche_tit(tit_num_ptd, hea_end_ptd) {
self.opener.END.innerHTML = " " + trim(hea_end_ptd) + " " + trim(tit_num_ptd) + " ";
}
<span class="form-control" id="END"> </span>
look if runat=server in your span tag works.
– Marconi
It didn’t work. I’m doing so: Document.getElementById('END'). innerHTML = ... E returns: Document.getElementById(...) is null
– Germano Sampaio
At what point are you using this Javascript function? Move the script to the end of the body tag and test.
– Joel Rodrigues