title: jQuery to get the text attribute of a checkbox
body: <p>I'm adding a check box to a page using the following statement;</p>
  
  <pre><code>&lt;script language="C#" runat="server"&gt;
      protected void Page_Load ( object src, EventArgs e ) 
      {
          if (!IsPostBack)
          {
           CheckBox XChkBox = new CheckBox(); //instance of System.Web.UI.WebControls.CheckBox
           XChkBox.ID = "someId"
           XChkBox.Text = "someText"
           somePlaceHolder.Controls.Add(XChkBox);
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I need to get the Text attribute of that check box on click. I tried <code>$(this).attr('Text');</code> inside <code>$('input[type=checkbox]').click(function(){});</code> but it returns undefined.</p>
  
  <p>Where am I going wrong? Please suggest.</p>
  
  <p>cheers</p>