zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/wwwroot/lib/jquery-validation-unobtrusive-bootstrap/README.md

31 lines
1.8 KiB
Markdown
Raw Normal View History

2023-12-05 09:22:48 +00:00
Bootstrap v4.x Extension for [jQuery Validation Unobtrusive](https://github.com/aspnet/jquery-validation-unobtrusive)
================================
This library is a extension for [jQuery Validation Unobtrusive](https://github.com/aspnet/jquery-validation-unobtrusive) and [jQuery Validation](https://github.com/jquery-validation/jquery-validation). It ensures the full compatibility between Bootstrap v4.x and jQuery Validation in interaction with ASP.NET Core.
## Installation
You can get this library in different ways:
Install with [npm](https://www.npmjs.com): `npm i jquery-validation-unobtrusive-bootstrap`
Install with [yarn](https://yarnpkg.com): `yarn add jquery-validation-unobtrusive-bootstrap`
Clone the [git](https://github.com) repository: `git clone https://github.com/brecons/jquery-validation-unobtrusive-bootstrap.git`
## Usage
Just include the javascript after jquery.validate.unobtrusive and that's it!
```html
<script src="~/lib/jquery/dist/jquery.slim.min.js" type="text/javascript"></script>
<script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
<script src="~/lib/jquery-validation-unobtrusive-bootstrap/dist/unobtrusive-bootstrap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" type="text/javascript"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
```
## License
This project has been released under the [MIT License](https://opensource.org/licenses/mit-license.php). This license applies ONLY
to the source of this repository and does not extend to any other Brecons distribution or variant, or any other 3rd party libraries
used in repository.
Copyright &copy; 2016 - 2019 [Bremus Solutions](http://www.bremus-solutions.de)