All,
I'm sure that this is an old question, but I'm having problems getting
a substring of a passed in variable. I can do other string
manipulation with it such as concatonation, but I'm really trying to
get everything after the = assigned to the id variable (i.e. set MSFT
to the id variable). Any help would be appreciated it.
'ticker' variable passed in is =
'http://caps.fool.com/Ticker.aspx?source=icaedilnk9950012&ticker=MSFT''
The first alert(ticker) work perfect and returns the entire string
above.
####Non-Working
Example####_______________________________________ _________
function enhanceTickerLinks(ticker)
{
alert(ticker)
var id
id = ticker.substr(5)
alert(id)