I have a simple Ajax call and for some reason I am unable to get the call to refresh the data properly.
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
var myFunction = $(document).ready(function(){
$("#div1").load("feeds.php");
});
setInterval(myFunction, 1000);
</script>
</head>
<body>
</body>
</html>
If I cut out of my attempt at an interval, It loads, but only once.
$(document).ready(function(){
$("#div1").load("feeds.php");
});
Any ideas where I am going on? My understanding of Ajax is a work in progress.
Thanks!