I am using this code to include a file (thanks M1K1O):
jQuery Code:
<script language="javascript">
$(function(){
$(".classloader").click(function(){
$("#contenthere").load("/includes/about-info.html");
});
});
</script>
HTML Code:
<p class="classloader">Click Here</p>
<div id="contenthere"></div>
But I have problems with character encoding. The included file is saved as iso-8859-2, the main html file is too but still I get "bushes".
How can I solve the problem?
And second question: after a click on 'Click here' text from a file is included. I would like the second click to erase the loaded content. Is that possible?
Thank you in advance for your help :)
Karolina