blink a row in datatable
blink a row in datatable
Hi All,
I am adding a new row to my datatable using fnAddData. Is there a way I can blink the newly added row for some time. Currently I am doing it by selecting the row and the changing the style to set the new background color and then changing it back to the old style class using setTimeOut. Please let me know if there is any neat way to do it.
Thanks
var tr = $('table#example tr:has(td:contains(newid))')
var oldClass = tr.attr("class");
tr.attr("class","blink");
setTimeout(blinkIt.bind(tr,oldClass),200);
blinkIt : function(oldClass){
this.attr("class", oldClass);
},
I am adding a new row to my datatable using fnAddData. Is there a way I can blink the newly added row for some time. Currently I am doing it by selecting the row and the changing the style to set the new background color and then changing it back to the old style class using setTimeOut. Please let me know if there is any neat way to do it.
Thanks
var tr = $('table#example tr:has(td:contains(newid))')
var oldClass = tr.attr("class");
tr.attr("class","blink");
setTimeout(blinkIt.bind(tr,oldClass),200);
blinkIt : function(oldClass){
this.attr("class", oldClass);
},
This discussion has been closed.
Replies
Allan