ubmitting
    
        // Get the email input value
        var email = document.getElementById("emailId").value;
    
        // Email validation using regular expression
        var emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
        if (!emailRegex.test(email)) {
          alert("Please enter a valid email address.");
          return;
        }
    
        // Simulate subscription (you may replace this with actual subscription code)
        // For now, just displaying the success message
        documen