LIFE AI
AI summary generated from this article text.
Comment submitted successfully. Your comment will be reviewed and published shortly.
';
form.reset();
document.getElementById('parent').value = 0;
document.getElementById('reply_comment_span').innerHTML = '';
response.scrollIntoView({ behavior: 'smooth', block: 'center' });
})
.catch(function() {
response.innerHTML =
'
Something went wrong. Please try again.
';
})
.finally(function() {
btn.disabled = false;
btn.innerText = 'Submit';
});
});
function showError(input, msg) {
const err = document.createElement('span');
err.className = 'field-error';
err.style.cssText = 'color:red; font-size:13px; display:block; margin-top:4px;';
err.textContent = msg;
input.parentNode.appendChild(err);
}
});
Comments (0)
Leave Comment