tmdb priority asked 8 months ago
add new datepicker to DOM via Jquery html
After DOM Element is replaced using jquery.html date picker does not work. css and js not working. Is there a way to reinitialize the datepicker css and js after new element is added to Dom.
Resources (screenshots, code snippets etc.)
mlazaru staff answered 8 months ago
I think this is what you are looking for:
const myDatepicker = new mdb.Datepicker(document.getElementById('myDatepicker'), options)
In case it didn't help, please recreate this problem in snippet.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 4.2.0
- Device: MACOS
- Browser: MACOS
- OS: MACOS
- Provided sample code: No
- Provided link: No