On Fri, Feb 5, 2010 at 8:14 AM, san82 <sandee...@spanservices.com> wrote: > I have the below HTML assigned to a variable in JS. > > HTML: > #ChevronSPAN4 << #ChevronSPAN4id= >> > > Please let me know using jQuery how can I search the variable for SPAN > elements with class="cheveron".
I'm guessing your variable got munged, eh? Do you mean you have a string of HTML? If so, you could DOMify it then search in that. var tempDiv = document.createElement('div'); tempDiv.innerHTML = (your variable); var cheverons = $(tempDiv).find("span.cheveron"); Nathan