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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -