Comments (4)
Hi @rarestoma,
Thanks for your time and respond to help me out to solve the validation search dropdown issue. And yeah, your solution works like charms!
I appreciate your kindness and support. Once again, thanks!
Sincerely,
Muhamad Amir
from ct-argon-dashboard-pro-laravel.
Thank you for working with our products.
Can you please give show us how did you implement the javascript of the validation so I can test it closely? It should add 'is-valid' / 'is-invalid'
classes to the input so the border will turn to green(success)/red(error).
Thank you,
Rares
from ct-argon-dashboard-pro-laravel.
Hi @rarestoma,
Thanks for your reply.
I used the needs-validation
class in the form tag, and also valid-feedback
/ invalid-feedback
class in the feedback. All the input type like text input, number, file, and normal dropdown are working fine, unless for search dropdown.
Sample form code I used:
Sample code for text input:
Output after validate:
Sample code for file input:
Output after validate:
Normal dropdown:
Sample code for search dropdown with data-toggle="select"
:`
Output after validate:
When select search dropdown:
Valid:
Even after select, it takes the primary color as border color, not the green.
Invalid:
For invalid, it doesn't put red color. The valid-feedback
/ invalid-feedback
feedback is working fine.
Please help me to solve this. Thanks in advance.
from ct-argon-dashboard-pro-laravel.
Thank you for providing me all the details.
Can you please add these lines on the CSS and try again?
.was-validated .form-control:valid ~ .select2 .select2-selection{
border: 1px solid #2dce89;
}
.was-validated .form-control:invalid ~ .select2 .select2-selection{
border: 1px solid #fb6340;
}
I tested it and now the border of the selects turns to green/red when is valid/invalid.
Please let me know if it works.
Thank you,
Rares
from ct-argon-dashboard-pro-laravel.
Related Issues (20)
- User cannot change his password in profile's settings HOT 4
- Page flickers on every load HOT 7
- The Argon Datatables is not Responsive like Material Datatables [Premium Support] HOT 1
- No validation for image upload on user profile HOT 3
- Truly Laravel 8 with Breeze and / or Jetstream HOT 1
- npm run production fails -> 100% - $icon-size-xl - 1 HOT 2
- How can I use the ajax call? HOT 3
- Sidebar Animation HOT 3
- Others Theme? HOT 3
- Range slider Result HOT 2
- Hi, I just can't figure out how to use full calendar. would you have a simple example with controller on how to view and add events? Thanks HOT 3
- Extend Edit and Delete feature to a new custom feature (Customers) HOT 8
- Horizontal scroll bar at the bottom of the page HOT 4
- Seeder Problems HOT 4
- How to work with fullcalendar HOT 1
- [Bug] El boton File browser no se visualiza que documento se sube HOT 4
- Primary color
- css and js not loading HOT 4
- Cant make page number of datatable dynamic [premium support] HOT 4
- Update to latest laravel [premium support] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ct-argon-dashboard-pro-laravel.