I am using this method to change CSS
$("#AllProducts li:contains('" + Product + "')").css("background", "white");
This works fine, but now I need to check two parameters when I change CSS like below
$("#AllProducts li:contains('" + Product + "')&&('" + iCategory + "') ").css("background", "white");
However, this doesn't work. I can't check if contains product and then if iCategory, I need them to be in the same object.