Good day, everyone!
I have a form validation with submit button. After adding an Id in the button, the tooltip for fields that don't have value is not popping out but if removed the Id, it works fine. And I also want not to trigger the button_click unless all fields are filled out. How can I handle the button with submit type?
I have a form validation with submit button. After adding an Id in the button, the tooltip for fields that don't have value is not popping out but if removed the Id, it works fine. And I also want not to trigger the button_click unless all fields are filled out. How can I handle the button with submit type?
HTML:
<form class="row g-3">
<div class="row">
<div class="col-lg-6">
<div class="mb-3">
<label for="firstnameInput" class="form-label">First
Name</label>
<input type="text" class="form-control" id="firstnameInput" placeholder="Enter your firstname" required>
</div>
<div class="mb-3">
<button id="btntest" type="submit">Test Button</button>
</div>
</div>
</div>
</form>