Link to home
Start Free TrialLog in
Avatar of n00b0101
n00b0101

asked on

jquery - get text after certain character?

Probably an easy question for someone that knows jquery... I've tried using split, but it's not giving me expected results...

I have an input like this:
<input type="text" value="Contact|timber" name="ct" id="cti" />

Open in new window


And, I'm trying to store |timber (the pipe and the characters immediately following it) in a variable.  Anyone know how to do that?
ASKER CERTIFIED SOLUTION
Avatar of Greg Alexander
Greg Alexander
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial