I have following a tags:
Any tab1 Label tab2 Label Any tab3 Label<
You can do something like this
var fragment = $('a#my-link')[0].hash.substr(1);
Check it out.