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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -