First off, I hope I've posted this in the correct spot.
Apologies if I have not.
All I want is a couple of links, lets say 1 2 and 3, they're all href links that lead to some page, but they have an "id" within the HREF.
So when I click them, I want them to load the results into a div, not just load another page.
What I have so far..
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$("#spLink").click(function(){
$("#spResult").html(ajax_load).load();
});
</script>
</head>
<body>
<h1>Test</h1>
<p><a href="test.html" id="spLink">Click</a></p>
<p><a href="test2.html" id="spLink">Click</a></p>
<p><a href="test3.html" id="spLink">Click</a></p>
<div id="spResult">
</div>
</body>
</html>
Help!