title: How to find a dynamically-generated HTML element?
body: <p>I need to get the client-side instance of a RadComboBox (or the newly-selected value of a RadComboBox) when my RadGrid is leaving edit mode so I can post back the changed value to the server. </p>
  
  <p>The problem is, the client-side id of the object always changes. Also, the RadComboBoxes aren't created at runtime -- they're only created after the user double-clicks a specific row of my RadGrid. Therefore, syntax such as</p>
  
  <pre><code>var SundayLoc = $find("&lt;%= FieldOpsScheduler_ctl00_ctl05_RCB_SunLocale.ClientID %&gt;");
  </code></pre>
  
  <p>equals FAIL. Until I started getting changing values, I was able to get away with this:</p>
  
  <pre><code>var SundayLoc = $find("FieldOpsScheduler_ctl00_ctl05_RCB_SunLocale");
  </code></pre>
  
  <p>This worked perfectly every time until I added some row separator objects which now cause the "ctl05" of the ids to always change depending on what row the user puts into edit mode. I've tried using all matters of getting this object and its value, but to no avail.</p>
  
  <p>I was going to try using regular expressions until after reading a community wiki answer by bobince at <a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454">RegEx match open tags except XHTML self-contained tags</a> has brought me to the realization that the temptation to parse HTML with regular expressions is the work of unholy Satan-spawn (that and after further research I've come to the conclusion that regular expressions probably won't help me).</p>
  
  <p>Anyway if someone could throw some ideas my way I'd greatly appreciate it. Thank you in advance.</p>