How do i load multiple html files and putting them into a specified html element?
I tried with no changes:
$('#asd').load('file.html,pippo.html');
you could get multiple items and add them to the element.
jQuery.ajaxSetup({ async: false }); //if order matters
$.get("file.htm", '', function (data) { $("#result").append(data); });
$.get("pippo.htm", '', function (data) { $("#result").append(data); });
jQuery.ajaxSetup({ async: true }); //if order matters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With