var u = $("a#oranges").attr("href") u.split("_t")[0]
or u.instring( 0, u.lastIndexOf("_t") ) On Mar 6, 4:34 pm, whoisonfirst <bp.ly...@gmail.com> wrote: > I have an image url --- it is enclosed in a href. > > "images/flavor/websites/oranges_id_t.jpg" title="oranges" > > How do I get the url MINUS the _t > > so it ends up being "images/flavor/websites/oranges_id.jpg" title="oranges" > > that I can pass to a variable of this ? > > -- > View this message in > context:http://www.nabble.com/Subtract-part-of-url-to-pass-new-url-to-variabl... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.