Skip to content

Instantly share code, notes, and snippets.

Created October 30, 2017 20:40
What would you like to do?
// store the element for later
// element === '<div>$9.99 USD/month</div>'
var $el = $(element);
var newText = $el.text().replace('/\/month/', '<span>/month</span>');
// set the element to use the next text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment