jquery load localhost page onclick

Sworioura

New Member
i have this page \[code\]<html><head><script type="text/javascript">$(document).ready(function(){alert("asdf");var url = "http://localhost/test/test.php";$("#button").on("click", function() { $('body').load( url );});});</script></head><body><input type="button" id="button" value="http://stackoverflow.com/questions/15710531/click" /></body></html>\[/code\]i want to load the content of the url and put it in the body, but nothing happend , why please? how to solve ?
 
Back
Top