I tring to load PHP file with ajax without refreshing the all page and it is not work. I have this code:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$('#gohomw').click(function(){
$("#center").load("home.php");
return false;
});
</script>
</head>
and this is my div:
<a href="#" id="gohomw">go home</a>
<div id="center"></div>
when i click on "go home" nothing happens, any idea?