Topic: re-initialize selector

altexo free asked 5 years ago

Hello, I have a ajax method that reloads only a div like this:
success: function (response) {$( "#list" ).load(window.location.href + " #list" );$( "#badge" ).load(window.location.href + " #badge" );$('.mdb-select').material_select();}
But selectors does not re-initialize correctly, is there a way to do this?This apply when I add the selector dynamically.

Mikołaj Smoleński staff answered 5 years ago

I think You should also load dynamically whole mdb-select div. It's not included in this function. There is just an initialization of it. Regards

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No