Load another page into a DIV id

<DOCTYPE html>


<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js”></script&gt;

$(function() {
$(“#Menu > li a”).each(function() {
var self = $(this);
var href = self.attr(“href”);
self.attr(“href”, “javascript: void(0);”);
self.click(function() {
<ul id=”Menu”>
<li><a href=”list.php?id=1″>First</a></li>
<li><a href=”insert.php?id=2″>Second</a></li>
<li><a href=”delete.php?id=3″>Third</a></li>
<div id=”Contents”></div>


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.