Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 566 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 566 Bytes

bootstrap5-JQuery-validation

Easy switch between Is-valid and is-Invalid or just remove both classes with a single line

SETUP:
Download validinvalidswitch.js and add it you your page below the bootstrap5 JS file

<script src="../js/bootstrap.bundle.min.js"></script>
<script src="../js/validinvalidswitch.js"></script>

To set is_valid use .valid(true);
To set is_invalid use .valid(false);
To Remove the validation use .valid();

for example

$('#Input').valid(true);
$('#Input').valid(false);
$('#Input').valid();