Javascript variable problem
<p>I have a variable in javascript:</p>

<pre><code>var activeSearchButton = document.getElementById('&lt;%=btnSearch.ClientID %&gt;');
</code></pre>

<p>I want to set it like this:</p>

<pre><code>&lt;asp:TextBox ID="WFTo" runat="server" onchange="activeSearchButton = document.getElementById('&lt;%=btnWFSearch.ClientID %&gt;');"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p>When I am trying to use the varible in javascript function, it is null. And the source shows:</p>

<pre><code>onchange="activeSearchButton = document.getElementById('&amp;lt;%=btnSearch.ClientID %&gt;');"
</code></pre>

<p>I noticed '&amp; lt;' instead of "&lt;". Is this the reason of my problem? Why does this happen? Or maybe there is another reason?</p>

<p>Thank you very much.</p>
