Hello,
I made a video just because I can’t tell.
add if no same mail is available in the textarea field
Video see: https://antenfiyati.com/checkbox.mp4
<script>
$(document).on('change', '#emailsec', '.emailsec', function(){
if ($(this).is(':checked')) {
$('.output').val($('.output').val() + $(this).val() + ",");
} else {
currentVal = $('.output').val();
currentVal = currentVal.replace($(this).val() + ",", '');
$('.output').val(currentVal);
}
});
</script>