highlight table row after dynamically adding it

后端 未结 2 806
南旧
南旧 2021-01-21 12:58

looking at how i can highlight a table row after dynamically adding it with jquery my code seems to be adding the row with no problems, but its not highlighting the correct row<

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-21 13:45

    You have to add css in effects like follow:

    $('#opponents tr:last').after('datamore data').effect("highlight", {color:'#ff0000'}, 3000);
    

提交回复
热议问题