jquery - Load php file into div with ajax not work -



jquery - Load php file into div with ajax not work -

i tring load php file ajax without refreshing page , not work. have 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"); homecoming false; }); </script> </head>

and div:

<a href="#" id="gohomw">go home</a> <div id="center"></div>

when click on "go home" nil happens, idea?

there no element specified id @ time script runs. move script appears after element trying bind event handler to.

jquery ajax

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -