jQuery removing part of string after "#" and removing "# "too

Viewed 44347

I wonder how can i remove all string part after "#". For example if i have example.com/hello#item1 how can i remove all characteres after # and # character too?

6 Answers
Related