I have this JQuery function:
function addSomeHTML()
{
$("#mysection").html("<div id='myid'>some content here</div>");
}
I basically need this part: <div id='myid'>some content here</div> to be read from an external file.
Can anyone help please?
Thanks
Use the AJAX
load()method.Of course the URL can also point to a PHP script etc.