$('#order').on("mouseenter",".addC",function(){ if($(this).find("input").hasClass("addColor")){ $(this).find("p").css("display", "block"); } }); $('#order').on("mouseleave",".addC",function(){ $(this).find("p").css("display", "none"); });
$('#order').on("mouseenter",".addC",function(){ if($(this).find("input").hasClass("addColor")){ $(this).find("p").css("display", "block"); } }); $('#order').on("mouseleave",".addC",function(){ $(this).find("p").css("display", "none"); });