Topic: re-initialize selector
                  
                  altexo
                  free
                  asked 7 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.
                
                  
                      
                        Add comment
                      
                    
                  
                
                      
                      Mikołaj Smoleński
                      staff
                        answered 7 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
                    
                      
                    
                    
                    
                    
                  
                  
                FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
              Answered
Specification of the issue
              - ForumUser: Free
 - Premium support: No
 - Technology: MDB jQuery
 - MDB Version: -
 - Device: -
 - Browser: -
 - OS: -
 - Provided sample code: Yes
 - Provided link: No
 
Tags