Client id method javascript
<pre><code> &lt;input type="text" id="txtFirstName" runat="server" class="textReg"                                         
 onblur="javascript:validate_input(&lt;%=txtFirstName%&gt;,'imgFirstNameS','imgFirstNameE');" /&gt;`
</code></pre>

<p>I want to send control id to my javascript function  </p>

<p>like <code>ctl00_ContentPlaceHolder1_txtFirstName</code></p>

<p>or </p>

<pre><code>function validate_input(control, success, error) {
control = document.getElementById('&lt;%='+control+'.ClientID %&gt;');
} 
</code></pre>

<p>is it possible ?</p>
