Beer Vodka rum whiskey
how can you select beer ? or rum ? in jquery ? they are not surrounded by any html tags....
Try this
$("div:contains('Beer')").css("text-decoration", "underline");