howto, Use JQUERY .EACH() but not for a element, for a Variable

Posted by nobosh on Stack Overflow See other posts from Stack Overflow or by nobosh
Published on 2010-03-13T05:52:56Z Indexed on 2010/03/13 5:55 UTC
Read the original article Hit count: 147

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about each