I want to refresh my div with PHP code in div tag but it's don't work. console said:
Uncaught TypeError: $(...).load is not a function
at doRefresh
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"> </script>
</head>
<body>
<div id="actu">
<?php include 'process.php'; ?>
</div>
<script type="text/javascript">
$(document).ready(function() {
function doRefresh(){
$("#actu").load("process.php");
}
$(function() {
setInterval(doRefresh, 2000);
});
});
</script>
</body>
</html>
EDIT
OP has updated code based on answer and comments.
</script></script>< there shouldn't 2 of those.process.phpis not including any other jquery libraries.load()is an AJAX shorthand method for jQuery