I have a jQuery selector, which has a chained function.
Inside the function I want to get access to the TEXT representing the expression for the selector.
This will work if you want to access selector string in your function:
$(this).html();
This will also work if multiple selector are use,
for instance,
$('#id1,#id2').click(function(){ alert($(this).html()); });