Hi at the moment I have some functions that recievs a variable
I also have the following html code
<div id"Show data here"> I want the data to be showed here</div>
I want the functions handleModules and handleNames to print out the variable that it recieves in the div with the id "Show data here", and the old data that was inside that div previously must dissapear to make room for the new data.
Thanks again for a great forum
The simplest version would be something like this (assuming your DIV has the id 'show'):
document.getElementById('show').innerHTML = var;