I have following a tags:
Any tab1 Label tab2 Label Any tab3 Label<
function tellMyName() { alert(this.hash.replace('#','')); } $('a').click(tellMyName);