2
I am trying to make a function to load a content with .load()
of jQuery
, the .load()
receives a parameter param
which would be the archive address.
And I’d like that html
was loaded after a specific element in the aside
.
I tried using the method .after()
but I couldn’t, I wonder if anyone has any solution?!
And I have another question, after uploading this new content, whether the methods that are within the $(document).ready();
will still work, to interact with the new loaded elements?!
HTML line where the onclick event is
<li class="list-group-item pointer" onclick="getTemplate('admin/email/lista-emails.php')">
Lista de E-mails
<span class="indicador success white right">14</span>
</li>
Javascript code
function getTemplate(string){
$("#here").after().load(string);
}
Note: He loaded the content into the aside
Which error is displayed in the console?
– Asura Khan
Sorry, I forgot to inform... He uploaded the content inside the aside
– Max Rogério