Skip to content

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

License

Notifications You must be signed in to change notification settings

basestring3/bootstrap5-JQuery-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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();

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published