[wd_asp elements=’search’ ratio=’100%’ id=1]

Using .load get with prepend load into Div

14th October 2018

Jquery - Ajax

jquery icon

Simple one first

$.get("load.php", function(data) {
$(data).prependTo("#postbit").fadeIn("slow");
});

And for one with a timer

function getMoreData() {
$.get("load.php", function(data) {
$(data).prependTo("#postbit").fadeIn("slow");
}).complete(function() {
setTimeout(getMoreData, 3000);
});
}
getMoreData();