Detect change in datatables select

0

I'm trying to integrate datatables into a project I have with materialize , however the design they have is quite different from materialize , researching me I found some good examples but with details, so I started playing with datatables and materialize so to speak, at the moment this is what I have achieved: example

However, the problem with which I see myself now is that in <select> that have the datatables to choose how many records you want to display the user, the buttons of the page return to their original style, so I need to detect the change of value in the <select> so that when the value changes the buttons take the modified style.

    
asked by Villatoro 12.04.2018 в 04:57
source

1 answer

1

The problem is that the input of class select-dropdown is not changing value since it has the property readonly to true

That's why I'm not entering you in the change event. Changing the change to the class select-wrapper (the div containing the input ) works without problems:

$('.select-wrapper').on('change', function(){
        materialButtons();
    });

Here I leave the example working

    
answered by 12.04.2018 / 12:50
source