In my code, how could I make an update so that the trs and the th selected don't get selected if their display is none?

Eklenme Tarih 1 hour ago
Active 19
Görüntülenme 89
S

img description