Can't hide and show controls within a table

Can't hide and show controls within a table

Hi,

In my table, I have 3 columns, each row has 4 controls: ddlType, ddlOperator, lstSearch and txtSearch.
User can add row on the fly.

I am trying to make it so that when user selects "Department" or "Location", lstSearch will show, but txtSearch will be hidden. Otherwise, lstSearch will be hidden, but txtSearch  will be shown. Here is the code:
http://plnkr.co/edit/Z28EfHPWVirRzWa5l3s6?p=preview

But for some reason, it is not doing what I want. Please advice. Thanks in advance.