I need to write an ajax call which fires in every 5 seconds. I can write an ajax call as below. But I cant make it periodically. Please help me.
var set_delay = 5000,
click = function () {
$.ajax({
// ...
})
.done(function (response) {
alert("");
})
.always(function () {
// ...
});
};
click();