Depending on your specific use case, you might try to select an attribute prefix:
var $grapDivs = $('div[class|="grap"]');
According to your sample data, it seems that βgrapβ is always a class prefix, so if possible, this might be what you want. If grap can be anywhere in the class, not just at the beginning, use * = instead.
FtDRbwLXw6
source share