title: Increment and Decrement value in textbox label value
body: <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> &lt;script&gt;
  
          $(document).ready(function () {
              $("#btn2").click(function () {
                  var $n = $("#number");
                  $n.val(Number($n.val()) + 50); // Have to type the .val() response to a number instead of a string.
              });
          });
      &lt;/script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;asp:Label ID="lblcost" runat="server" Text="50/-" /&gt;
   &lt;input type="text" id="number" value="0"/&gt;
   &lt;button id="btn2" type="button"&gt;+&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>i am writing the code by using javascript, jquery, html, c#.</p>
  
  <p>I have taken one label value is 50. and two buttons for increment and decrement.
  What i want is "when i click on the Increment button the value is displayed in textbox which is what i given the label value. if i click on first time on increment button the textbox value is 50, 2nd time it's become 100. if i click on decrement button it's become 100-50=50. but</p>
  
  <p>it has to take that particular label value.</p>
  
  <p>Please provide the exact code for this task</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> &lt;script&gt;
          $(document).ready(function () {
              $("#btn2").click(function () {
                  var $n = $("#number");
                  $n.val(Number($n.val()) + 50); 
              });
          });
   &lt;/script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;asp:Label ID="lblcost" runat="server" Text="50/-" /&gt;
          &lt;input type="text" id="number" value="0"/&gt;
          &lt;button id="btn2" type="button"&gt;+&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>