Created
December 20, 2013 18:50
-
-
Save KryptikOne/8059500 to your computer and use it in GitHub Desktop.
Limiting the character count of a particular element.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $("#some-element").text(function(index, text) { | |
| return text.substr(0, 175); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment