Here you go:
Code:
<script type="text/javascript">
function putText(el,text){
document.getElementById(el).innerHTML=text;
}
</script>
<div id="div1"></div><div id="div2"></div>
<input type="button" onClick="putText('div1','Div1 here... Nothing special...');" value="Change Div1"/>
<input type="button" onClick="putText('div2','Div2 here... Nothing special... Just kidding, you know me... :)');" value="Change Div1"/>
The first highlighted part is for the div you want to change, and the next is for the text.
Bookmarks