I have a mild preference in solving this in pure JS, but if the jQuery version is simpler, then jQuery is fine too. Effectively the situation is like this
&l
Have you tried something like this?
var thisone = $("#thisone").clone(); thisone.children().remove(); var mytext = thisone.html();