This successfully gives an alert for the current clicked link's ID.
jQuery('a.inline').live('click',function() {
jQuery(this).attr('href', 'javascript:void(0)');
alert(this.id);
});
However, instead of getting an alert, i was it to update a variable on that page that i can echo. For example i would like to use something like this ...
<p><?php echo $theechoedid; ?></p>
I don't really want to be able to echo this as a value of a div, as i'll be using the echo'd value in a loop like so:
<?php $loop = new WP_Query( array( 'p' => '424', 'post_type' => 'product', 'posts_per_page' => 1 ) ); ?>
Thanks for your help guys.