开发者

show changes after a refresh

开发者 https://www.devze.com 2023-01-29 03:02 出处:网络
Is it possible to highlight changes in the DOM after each AutoRefresh. What are some di开发者_StackOverflow社区fferent approaches?

Is it possible to highlight changes in the DOM after each AutoRefresh. What are some di开发者_StackOverflow社区fferent approaches?

Thanks, rod.


@rod maintain a separate class with required colors and whenever you add a element to dom on ajax , give this class to that element.

$('#yourid').load('new.html', function() {
  $("#id").addClass("newcolor");
  $
});
0

精彩评论

暂无评论...
验证码 换一张
取 消