Text selector and wrap
Text selector and wrap
Hi,
I have a text like this:
Attension: Watch out!
Is it possible only to wrap the first word with the strong tag?
I tried something like this > $("div.text:contains('Attension:')...").wrap("<strong></strong>").
But in this case the whole div gets wrapped and not only the first word.
Any idea how to solve this problem?
thx
TC