$('#dSuggest').keypress(function() { var dInput = this.value; console.log(dInput); $(".dDimension:contains('" + dInput + "')").css("display","block"); });