So every time I click the button to submit the form, the appended div appends itself over. How can I make it so the div appends itself just once?
<div class="field">
<div class="field">
<div id='eerr' class="errors"></div>
</div>
</div>
if (email == '' || emailResult == false) {
$('#eerr').append('<div class="ui basic red pointing prompt label transition visible">Please insert your email.</div></div>');
}
Btw, this is the button:
<button style="margin-top: 7px" type="button" onclick='singup()' class="ui primary submit button login ">clickme</button>