title: Get the value of RadNumericTextBox in JavaScript or jQuery in ASP.NET
body: <p>I have a <code>RadNumericTextBox</code> in a <code>DetailsView</code>on a <code>ASP.Net</code> Web Page. I am trying to access this in JavaScript (jQuery). I have successfully got the <code>RadNumericTextBox</code> as a variable in javaScript and when I inspect the page this variable contains all the properties including the value of the <code>RNTB</code>.
  However I get undefined for the result of <code>get_value()</code>. That is according to the literature for Telerik the right way to get the value. I have also tried val, value, and Text. None of them work.</p>
  
  <p>Here is the <code>javaScript (jQuery)</code> I am using</p>
  
  <pre><code>&lt;script  type="text/javascript"&gt;
      function addZerosToBSB(sender) {
          var BSB = $("#ctl00_XXXXXX_XXXXXXXWizard_XXXXXX_BSB");
          alert(BSB.value);//undefined
          alert(BSB.val); 
          alert(BSB.get_value()); // this is what telerik literature says to do but it is undefined
  ......
  </code></pre>
  
  <p>Here is the <code>DetailsView</code> </p>
  
  <pre><code>&lt;asp:DetailsView runat="server" ID="XXXXXXXXXX" DataSourceID="XXXXXXX" Width="100%" DefaultMode="Edit" AutoGenerateRows="False" DataKeyNames="XXXXXXXXXX"&gt;
                      &lt;FieldHeaderStyle Width="30%"&gt;&lt;/FieldHeaderStyle&gt;
                      &lt;Fields&gt;
                          &lt;asp:TemplateField HeaderText="BSB"&gt;                                
                              &lt;EditItemTemplate&gt;
                                  &lt;telerik:RadNumericTextBox runat="server" ID="BSB"  NumberFormat-GroupSeparator="" NumberFormat-DecimalDigits="0"  Text='&lt;%# (Eval("BSB") %&gt;' &gt;&lt;/telerik:RadNumericTextBox&gt;
                              &lt;/EditItemTemplate&gt;
                          &lt;/asp:TemplateField&gt;
  .........
  </code></pre>
  
  <p>I have tried BSB.text in the javaScript and this is what it returns</p>
  
  <pre><code>ƒ (a){return S(this,function(a){return void 0===a? 
  r.text(this):this.empty().each(function() 
  {1!==this.nodeType&amp;&amp;11!==this.nodeType&amp;&amp;9!==this.nodeType|| 
  (this.textContent=a)})},null,a,arguments.length)}
  </code></pre>
  
  <p>My question is how can I get the value of the <code>RadNumericTextBox</code> in <code>javaScript</code> and then how can I set it?</p>