Here is my html code:
<div> Please complete this form to create a new account. <br> Fields marked with (*) are required. <div id="errorZone"></div> </div> I want to select text between div and div id="errorZone".
I'm trying this code:
$('#errorZone').prev().text().remove(); But this doesn't work
$('#errorZone').parent().remove('br').text();