Selecting only within a generated DIV?

Selecting only within a generated DIV?

I've got a hidden template div that contains an <LI> that is cloned and added to an <UL> on the fly. The cloned <LI> items have placeholder IDs.  What I want to do is find all the IDs *within the cloned <LI>* that has a defined string in it (and then replace that string with the proper index, etc.)

So, for example, here's the HTML of the template:
  1. <DIV id='thisLineRowTemplate' style="display:none"> 
  2.     <LI class='arrow' id='thisLineTemplateLI'>
  3.         <a href='#ex_EXNUMBER'>
  4.             <DIV class='LABELCLASS thisLine_labelContainer'>
  5.                 <TABLE height=100% width=100%>
  6.                     <TR valign='center'><TD align='center'>EXLABEL</TD></TR>
  7.                 </TABLE>
  8.             </DIV>
  9.             <IMG id='thisLine_checkmark_EXNUMBER' class='thisLine_checkMark_off' src="assets/checkmark.png" width=60px height=54px>
  10.             <DIV id='thisLine_item_EXNUMBER' class='thisLine_exNameContainer'>
  11.                 <TABLE height=100% width=100%>
  12.                     <TR valign='center'><TD>EXNAME</TD></TR>
  13.                 </TABLE>
  14.             </DIV>
  15.         </a>
  16.     </LI>
  17. </DIV>

...and here's the code so far:
  1. for(rowIdx=0;rowIdx<theRows.rows.length;rowIdx++) {
  2. thisRow = $("#thisLineTemplateLI").clone();
  3. $(thisRow).attr({'id':'thisLineRow_'+rowIdx, 'display':'block'}).appendTo("#theList")
  4. $(thisRow 'select[id*="EXNUMBER"]').each(function() {console.log("Found a EXNUMBER")});
  5. };

Line 4 is what's stumping me.  The <LI>s are being cloned perfectly.  I've tried a couple of different selectors but honestly, I'm still pretty new to jQuery, so some of the concepts continue to elude me.  At this point, all I get is "Parse Error" on that line.


All help is appreciated!

Scott.