Created
February 26, 2016 18:34
-
-
Save leepettijohn/4af6671cc8aebc610e89 to your computer and use it in GitHub Desktop.
Revising all texts on a page in a certain selector
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
| //Use correct selector | |
| $('.your-selector').text(function(){ | |
| return $(this).text().substr($(this).text().indexOf('insert-your-break-point-here')); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment