I\'d like to update element\'s text dynamically:
**text to change**
text t
Just wrap the text you want to change in a span with a class to select.
Doesn't necessarily answer your question I know, but, probably a better coding practice. Keep things clean and simple
**text to change**
text that should not change
text that should not change
Voilà!
$('#header .mytext').text('New text here')