How can i apply java script to access the client id or a control placed in the grid view?
<p>I want to access a dropdown asp control client id placed in the gridview.</p>

<pre><code>function validate(){
 var ddl = document.getElementById("ctl00_ContentPlaceHolder1_grdProducts_ctl02_ddlSelectSize");
}
</code></pre>

<p>I want a generalized way to access above id on a rowcommand event click of a gridview that holds a button.
And onButton click i am calling method <code>onclientClick(return validate());</code></p>
