Skip to content

Instantly share code, notes, and snippets.

@leepettijohn
Created February 26, 2016 18:34
Show Gist options
  • Select an option

  • Save leepettijohn/4af6671cc8aebc610e89 to your computer and use it in GitHub Desktop.

Select an option

Save leepettijohn/4af6671cc8aebc610e89 to your computer and use it in GitHub Desktop.
Revising all texts on a page in a certain selector
//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