javascript - Create Callable jQuery Function for Ajax -
i can't find exact answer this.
i'm working bootstrap 3 skin purchased contains form ui elements create nicer selects, radios etc.
but called via selector on dom ready so:
$('select[data-toggle="dropdown-select"]').each(function() { // stuff here }); the problem have forms load via ajax forms don't styled since .each loop executed.
is there way can wrap selector call callable function without stopping firing on dom ready?
or should duplicate work separate function of it's own?
i tried this:
$.fancyselect = function () { $('select[data-toggle="dropdown-select"]').each(function() { // stuff here }); } but stopped selectors working on own.
Comments
Post a Comment