Can i pass 'this' to a custom function from an event handler eg.
$('p').('click',function() { myCustomEvent(this); }); myCustomEvent(ref) { //ref Object or JQuery object ? $.get("path_to_cgi",{name = ref.text()},function(data) { alert("Data : " + data}); }