Comparing 2 inputs with data set.

The .hide() method should be put inside the if {} .