Pass server side control's client ID in javascript function as parameter
<p>How can I pass server side asp control's client ID in javascript function.
I tried like this.</p>

<pre><code>&lt;asp:RadioButtonList ID="rdbMyocardial" runat="server" RepeatDirection="Horizontal" onClick="return f1('&lt;%rdbMyocardial.ClientID %&gt;')"&gt;
      &lt;asp:ListItem Value="True"&gt;Yes&lt;/asp:ListItem&gt;
       &lt;asp:ListItem Value="False"&gt;No&lt;/asp:ListItem&gt;
  &lt;/asp:RadioButtonList&gt;
</code></pre>

<p>But when I try to print the value in javascript, like this,</p>

<pre><code>function f1(list) {
    alert(list);
    return true;
}
</code></pre>

<p>It shows &lt;%rdbMyocardial.ClientID %>. How can I get the client side ID of server control?
Also how can I set it from both HTML and from server side code?</p>
