Call jQuery plugin's method on items added dynamically -



Call jQuery plugin's method on items added dynamically -

i have page there's button add together new content. button adds elements dom, , 1 of them bootstrap-select component.

the page have @ to the lowest degree 1 grouping of elements, , first 1 can utilize class="selectpicker" , works fine. however, new items added, doesn't work, think should phone call the method through javascript $('.selectpicker').selectpicker();

the problem don't know how trigger function can phone call selectpicker() method.

call selectpicker refresh parameter newly added items

$('.selectpicker').selectpicker('refresh');

jquery

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -