0

I would like to truncate a text or line with DOTS using JavaScript but I need to display the end (filename after slash) and start. Something like dropbox.com does on their website.

I'm looking for jQuery extension or something similar.

Robert Grezan
  • 1,266
  • 3
  • 13
  • 27

1 Answers1

1

Something like this may work. You should be able to wrap some of this in a jQuery function or just use the styling directly as part of your markup.

http://jsfiddle.net/4Lruv/ - tested Chrome only

Brandon Boone
  • 16,281
  • 4
  • 73
  • 100