I have this DOM structure:
<span id="aa"><a id="bb">myname</a> test test test</span>
I want to be able to select #aa and then split #bb away from the text "test test test" since I need to perform some string operations (replace) with the text. How do I select just the text in this case? And then after the string replace operation, I want to make sure I can merge it back to #bb and within #aa.
Let me know the best way to approach. Thanks