I have such a code:
<input type="text">some dummy text i need to remove! <select>F.i.</select>
I tried to to use jQuery for this. But it doesn't seem to work.
$('div').children('select').prev().remove();
It deletes input
instead of that text.
So, how to remove text which is simply between tags?