| is a special character in the selector syntax, which means that you cannot use it directly in the identifier selector. If you cannot change the identifier in your markup to place your selector, you will have to do with escaping the selector to trick jQuery anyway:
$("#name_\\|_anything")
Boltclock
source share