Skip to main content

All Questions

0 votes
1 answer
75 views

Validating billing address form using jquery plugin before payment

I have HTML form for billing address and created unique ID for each form field, but problem its not validating correctly, it must first check when fields are empty before proceed to next page. Below ...
MyLegend2020 Wilson's user avatar
0 votes
1 answer
160 views

Bootstrap 4 Client Side validation as user types

I have a form (using Bootstrap styling) which users are finding hard to use. As part of my delve into form UX I'm trying to prompt the user as they type that a field is incorrect; before they submit ...
Matthew Barraud's user avatar
1 vote
1 answer
2k views

reset entire form using bootstrap validation

I am trying to create a dashboard using bootstrap form and validation. I was able to Validate the entire form. With my current code I was able to reset the value but not the error class Here is my [...
Mr.M's user avatar
  • 1,470
1 vote
0 answers
407 views

Ajax form gets submitted twice when i click on submit button second time

Simple bootstrap 5 (with validation) contact form with Ajax call gets executed only when i hit submit button second time and it also save data twice. this form is inside modal form and this behavior ...
Learning's user avatar
  • 19.8k
0 votes
0 answers
29 views

Using jquery form validation but modal still pops up even when invalid

I am using jquery's form validation plugin which is highly useful. But how do I prevent the modal from opening on submit? jQuery.validator.setDefaults({ debug: true, success: "valid" }); ...
Paul Davis's user avatar
0 votes
3 answers
1k views

Bootstrap validation. How can i treat zero as null?

The rendered html of my form is <div class="form-group col-xl-6"> <label class="form-label" for="SalePrice">Sale price</label> <input class="form-control" id=...
OrElse's user avatar
  • 9,879
0 votes
2 answers
751 views

Custom Bootstrap validation on form element

I am collecting an ABN (Australian Business Number) on a registration form. I have written some javascript that does validation based on the ABN validation rule here: function validateABN (abnNumber) ...
Website Builder's user avatar
2 votes
0 answers
452 views

HTML input field number 0-100 validation with javascript / jquery

I have a question about an input field which should only accept numbers with two digits after the dot. For this scenario I created a fully functional Fiddle example - where you can see where I am ...
44r3n54n's user avatar
0 votes
0 answers
1k views

How to trigger default Bootstrap 4 form validation error message from custom external script

In our contact form, I'm trying to only allow submissions from email addresses from the United States, since we can only do business in that one country. How can I trigger the default error message ...
user3120861's user avatar
0 votes
1 answer
1k views

Bootstrap form validation, require 1 of 3 text fields?

I'm using bootstrap 4 with the built in form validation. I can require one text filed like this <div class="col-6 mb-3"> <label for="field">field</label> <input type="text" ...
Xtreme's user avatar
  • 1,599
0 votes
2 answers
635 views

Bootstrap required validation to select one of the dropdown

I have this fiddle (from my project) https://jsfiddle.net/autofiddle/cap6g9wq/20/ I want to have customer name and the first dropdown required as it is. Depending on what you choose in the first ...
Xtreme's user avatar
  • 1,599
0 votes
0 answers
69 views

Referencing the is-invalid and :invalid pseudoclass of bootstrap form validation with jQuery to to run code only when form is valid

Here is the code $("#enterform").on("click", function (event) { if ((($(".was-validated").children().hasClass(":invalid"))===false)&&(($(".was-validated").children().hasClass(".is-...
Kmopper's user avatar
2 votes
1 answer
708 views

Using Jquery bootstrap validation to validate individual field in an array of fields along with sibling field

I have a form with form-groups each containing similar text fields and checkboxes which are sent as arrays when submitting the form as below: <form method="POST" action="http://...
Anbu369's user avatar
  • 99
0 votes
1 answer
143 views

Inserting the same HTML Form element into multiple modals when shown, but validation doesn't work

I am developing a one page website using HTML5, CSS3, Bootstrap 4 and jQuery. I also use jQuery Form Validator for form validation. The problem is that I have several Bootstrap modals having ...
karim's user avatar
  • 127
0 votes
1 answer
2k views

How do I reset the BootstrapValidator without deleting data from the form? [duplicate]

I am using BootstrapValidator in a project. After the validator has been initialized $(formSelector).bootstrapValidator(/*plugin options*/), other javascript may enable or disable some input fields. I ...
Kuai Le's user avatar
  • 162

15 30 50 per page
1
2 3 4 5
18