<a class="source" href="jquery-lead.php?source=<?=$src;?>">3</a>
<script type="text/javascript">
$("a.source").live('click', function() {
$("#results").load(this.href, { page: $(this).text() });
return false;
});
$("a.source:first").click()
</script>
I am able to pass $src variable to my php script, but I also want to pass whatever is in the tag. In this case “3”, this is going to be a pagination..
Updated for comments – You can do it like this:
This uses
.load(url, data), in your php thepagevariable will now be available…or whatever you want it called, just rename appropriately.