I have done this document in JQuery, when the user clicks on the different internal links, this loads a with div id = "change" that "deletes" the content.
So far it deletes the image without problems, but the
inside no, I understand this only works for images and not for texts, but I do not find that script that can delete the text.
HTML
<ul class="sub-menu">
<li><a id="page2">Abertura de cajas</a></li>
All the content inside the div "cambio" should be erased at the moment the users clicks on the href (see above)
<div id="cambio">
<div id="text_main">
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
</div>
<div><img id="logotipo" src=".\docu2_files\imagenes\ricoh.jpg"></div>
</div>
The Jquery loads the content of the required html and deletes the content in the id "cambio"
$(document).ready(function(){
$("#page1").click(function(){
$("#change").css("display", "none");
$('#result').load('./docu2_files/docs/control_dia.html');
});