Problem loading <span> tag content into codebin

Asked

Viewed 47 times

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 = "&nbsp;&nbsp;" + trim(hea_end_ptd) + "&nbsp;" + trim(tit_num_ptd) + "&nbsp;";
    }

 <span class="form-control" id="END">&nbsp</span>
  • look if runat=server in your span tag works.

  • It didn’t work. I’m doing so: Document.getElementById('END'). innerHTML = ... E returns: Document.getElementById(...) is null

  • At what point are you using this Javascript function? Move the script to the end of the body tag and test.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.