Insert a character using jquery at some location using substring

April 8, 2010 at 1:18 pm 1 comment


var count=$(‘.content’).length;
var before=$(‘.content’).text().substring(0,125);
var after=$(‘.content’).text().substring(125,count);
var result=before+’…’+after;

Entry filed under: Javascript, jquery.

z-index issue with IE7 Jquery | Some useful and qucik scripts

1 Comment Add your own

  • 1. Kaan  |  July 11, 2013 at 8:44 am

    If you could write down the output too would be great.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Flickr Photos

Top Clicks

  • None

Blog Stats

  • 730,517 hits

%d bloggers like this: