I have achieved the ability to highlight a <div> based on search text. You can view the JSFiddle here.

Now, I'm trying to apply the same concept to a set of mapped coordinates on an image map, and I'm having issues getting it to work.

Each set of mapped coordinates will have a text value assigned so it remains searchable.

Here's the JS I have so far...

Code:
	function doSearch(text) {
		$('#content div').removeClass('highlight');
		$('#content div:contains(' + text + ')').addClass('highlight');
	}
Thoughts?