howto, Use JQUERY .EACH() but not for a element, for a Variable
- by nobosh
In Javascript, I have a variable that is set to a block of text from a WYSIWYG editor.
I want to use JQUERY's EACH() to find span's with the class XXXX.
$( "span.foods" ).each( function() {});
But I want it to search in the variable I have, lets call if lookHere
Is this possible?