How do I stop html form from submitting blank fields in emailjs?
I have created a form like this and used onclick which triggers the index.js to submit the form even if the form is empty. <form> <div class="form-item"> <label for="date">Date:</label> <input type="date" id="date" name="date" required> </div> <button type="submit" onclick="sendMail()">Submit</button> </form> My…