I have checked the following link:
jQuery :contains(), but to match an exact string
But once I find the div i have to set attribute:
$('#viewer .textLayer div:contains('+hotspot_draw_join+')').each(function () {
$(this).attr('class','secondtypehotspot secondtypehotspot_ref');
$(this).attr('id',hotspotstr);
$(this).attr('onclick','secondtypehotspotfn(event)');
});
How do i do that using filter option