Topic: How to update select option using ajax
itsupport.engineer priority asked 6 months ago
Is they anyone who can help me?
Thank you for reply.
I have tried that code but still problem. It generated two dropdown.
const select = document.querySelector('#client'); const option = document.createElement('option'); option.value = 1; option.innerText = "option 1"; select.appendChild(option); const mySelect = new mdb.Select(select);
Here is the snippet showing how to add options via JS https://mdbootstrap.com/snippets/standard/d-wajszczuk/3532677#js-tab-view.
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.0.0
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No