Topic: Datepicker eventlisteners not working
                  
                  baasjedave
                  premium
                  asked 6 months ago
                
Expected behavior Give console log and alert output when datepicker opens and value changes
Actual behavior No output
Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/baasjedave/6411143
                      
                      Kamila Pieńkowska
                      staff
                        answered 5 months ago
                    
I fixed your snippet: https://mdbootstrap.com/snippets/standard/kpienkowska/6412141
You need to add a listener to a div that wraps the component element, not the input inside.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Premium
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 9.0.0
- Device: Desktop
- Browser: Firefox
- OS: Windows
- Provided sample code: No
- Provided link: Yes