Hi Team
I need help my form is not submitting, but i dont have any errors and want to use bootsrap alerts when form is submitted successfully and required is not displaying.
// html
Student Refund Form
Jayraj ChhayaPosted Nov 25, 2024, 1:10 PM
Hi Gcobani Mkontwana,
To address the form submission issue and implement Bootstrap alerts, consider the following steps:
JavaScript Validation: Ensure that you have included JavaScript to handle form validation and submission. You can use the
onsubmitevent to validate the form and display alerts. Here’s a simple example:Bootstrap Alerts: Ensure you have included Bootstrap CSS and JS in your HTML file for the alerts to function properly.
Required Field Validation: The
requiredattribute is correctly placed in your input fields. Ensure that your browser supports HTML5 validation, or consider using a library like jQuery Validation for enhanced functionality.By implementing these changes, your form should submit correctly, and users will receive appropriate feedback through Bootstrap alerts.