jquery problem, jquery takes over all links on page
- by vick
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
$("#results").load( "jquery-routing.php", { pageNo: $(this).text(), sortBy: $("#sortBy").val()} );
return false;
});
});
</script>
<div id="results"> </div>
<a href="jquery-routing.php?p=1">1</a>
<a href="jquery-routing.php?p=2">2</a>
that code works fine, only problem that after I run it all my a href links stop to work! The links become jquery ajax calls.. why?