GetElementID of dynamically assigned object
<p>My javascript function accepts a parameter which changes dynamically. I want to get it's dynamically generated ClientID as i m using a server control.</p>

<pre><code>function myfun(btn){

   var id=btn.name+"1";
   document.getElementByID('&lt;%"+id+".ClientID%&gt;')  --something like this
</code></pre>

<p>}</p>
