Closed MauMaGau closed 11 years ago
Enable multiple elements to refresh by using data-refresh=".ele1, ele2" Something like:
data-refresh=".ele1, ele2"
if (refresh_selector) { refresh_selector = refresh_selector.split(','); $.each($(refresh_selector), function(index, value) { $.getJSON($(value).data('refresh-url'), function(data) { $(value).replaceWith(data.html) }) }) }
@MauMaGau I don't think this is a necessary. jQuery supports doing $('.some-class,#some-id,element') to select different things in one go.
Oh awesome, so it does! My bad, thanks :)
Enable multiple elements to refresh by using
data-refresh=".ele1, ele2"
Something like: