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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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