The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Breaking apart text Re: Breaking apart text


So i have been reading up on jQuery a bit more… to be honest it is hard for my mind to wrap around…

if I put a string of text like such…



Can I create some jQuery code that will virtually erase everything after the 20?

Then if I had that same string of text but displayed as such…



Can I have another line of script that will erase the 20- and the -2009?

I was looking at where it talks about Changing and Removing Content and am wondering if i am in the right area or even on the right track?
Thank you in advance for any help on the matter