jquery - Removing ajax load content -
i'm using bootstrap tabs.
http://getbootstrap.com/javascript/#tabs
with
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e) { ... } inside simple ajax call
$.ajax({ type: "get", url: "ajax/records.php?type=" + url, beforesend: function() { //$('#spinner_add').show() }, error: function(error) { console.log(error); }, success: function(data) { generateview(data, url); }, datatype: "json" }); i'm detecting when tab selected / clicked , trigers ajax load content. contents shown in table inside <tbody> , ajax loads rows table.
i have problem refresh of data. idealy, before new ajax call remove "old" rows, since loaded dynamically can't select them normal selectors.
advice?
Comments
Post a Comment