I am trying to get the class name of this item but it keeps returning undefined.
var className = $(':contains("TRI-PACK PERTEX JACKET HIBISCUS")').attr('class');
1: Here is the class I want it to return
HTML Page: https://shop.palaceskateboards.com/
I want to get the class of name of the product based on keywords later I will use nightmare JS to click that class.