-1
Hi, I made this code to test, because it doesn’t work
<script>
$(document).ready(function(){
$("#button").click(function(){
$("#div").load('teste.php');
});
});
</script>
<input type="button" id="button" name="button" value="ADD PAGE">
<div id="div" name="div"></div>
php test.
<?php>
echo 'teste';
?>
Ctrl+Shift+J
in the browser, reload the page and see if an error appears.– relaxeaza
@Rafaelmafra Volta
teste:14 Uncaught ReferenceError: $ is not defined
 at teste (teste:14)
 at HTMLInputElement.onclick (teste:19)
– Lucas Caresia
The code seems correct to me. See if you imported jquery correctly in the page head
– Antonio Alexandre