title: How to get a asp:radiobutton text in javascript?
body: <p>How to get a asp:radiobutton text in javascript?</p>
  
  <p>I use this </p>
  
  <pre><code>RbDriver1.Text = dt.Rows[0].ItemArray[5].ToString(); 
  RbDriver2.Text = dt.Rows[0].ItemArray[6].ToString() ;
  </code></pre>
  
  <p>and my javascript function is </p>
  
  <pre><code>function getDriverwireless() {
  alert(document.getElementById("ctl00_ContentPlaceHolder1_RbDriver1"));
  alert(document.getElementById("ctl00_ContentPlaceHolder1_RbDriver1").innerHTML);
  }
  </code></pre>
  
  <p><code>innerHTML</code> doesnt seems to take the text of my radiobutton...any suggestion</p>
  
  <p>When i inspect throgh firebug i found this</p>
  
  <pre><code>&lt;input type="radio" onclick="getDriverwireless();" value="RbDriver1" 
  name="ctl00$ContentPlaceHolder1$drivername" 
  id="ctl00_ContentPlaceHolder1_RbDriver1"&gt;
  &lt;label for="ctl00_ContentPlaceHolder1_RbDriver1"&gt;kamal,9566454564&lt;/label&gt;
  </code></pre>
  
  <p>I want to get the value <code>kamal,9566454564</code> in javascript...</p>