I want to show hide two divs based on response, if OK show div1 & hide the form, if error show div2
Code:
document.addEventListener('DOMContentLoaded', function() { document.querySelector('.myForm').addEventListener('submit',
document.addEventListener('DOMContentLoaded', function() { document.querySelector('.myForm').addEventListener('submit',
<html> <head> <meta charset="utf-8">
Leave a comment: