title: How do I get label value as a parameter into a javascript function?
body: <p>Hopefully this one is not too hard to understand but I just want the label values to be inputs into a javascript function. Might be better to explain with code:  </p>
  
  <p>ASP.NET Label code:  </p>
  
  <pre><code>&lt;asp:Label ID="LabelCL" runat="server" Text="A single int filled in by DB"&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>Page Source:</p>
  
  <pre><code>&lt;span id="ctl00_cpMainContent_LabelCL"&gt;7&lt;/span&gt;
  </code></pre>
  
  <p>What I would like to achieve but am not sure how to do:  </p>
  
  <pre><code>&lt;span id="ctl00_cpMainContent_LabelCL"&gt;     &lt;script type="text/javascript"&gt;functionX(7)&lt;/script&gt;    &lt;/span&gt; 
  </code></pre>
  
  <p>So basically just wrap the output int in the following:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;functionX( VALUE FROM LABEL TEXT)&lt;/script&gt;
  </code></pre>
  
  <p>within the<br>
   <code>&lt;span&gt;&lt;/span&gt;</code></p>