Jump to content

Trimming A Javascript Variable - Solved With Thanks


niche

Recommended Posts

I have a javascript variable var newLink = "Bob "; which comes from a xmlhttp.responseText. I could clean-up the string in my php script. I could also slice at " ,", but I'd like to know how to trim "Bob " with js. How is that done?

Link to comment
Share on other sites

Thanks dsonesuk. It's hard to how when there's a tailor made method and when some assembly is required as I learn javascript.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...