CSS Practical No 12
CSS Practical No 12
<script>
function validateForm() {
// Clear previous errors
document.querySelectorAll('.error').forEach(function(error) {
error.style.display = 'none';
});
</body>
</html>
Output: