You do not need to use jQuery for this. Simple javascript is fine.
In this case:
var text = 'texttexttext#abc'; var textAfterHash = text.split('#')[1];
or
var textAfterHash = text.substring(text.indexOf('#') + 1);
JSFiddle example how
Richard Dalton
source share