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
Post a Comment