Hide datalist icon if row not selected
I have a datalist and each row contains a hidden 'edit' and a 'delete' icon. The icons only display once a row is selected. The problem is that I cannot get the icons to hide after the selected row looses focus (i.e. a different row is selected). Any thoughts on how I can resolve this?
Thanks in advance!