html - Error in executing jquery function -
i executing following code getting error: "objected expected" checked code didnt find problem.
<!doctype html> <html> <head> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script> $(document).ready(function(){ $("#clickme").click(function(){ $("#body1").load("http://www.w3schools.com"); }); }); </script> </head> <body> <div id="header"> <a href="#" id="#clickme">click me</a> hello </div> <div id="body1"> mid </div> <div id="footer"> hi </div> </body> </html>
your id should
<a href="#" id="clickme">click me</a> there # in id.
** edit **
other problem can't load page on domain site. you'll have use iframe that.
Comments
Post a Comment