title: Jquery click event doesn't show button anymore
body: <p>I'm using two query click events to dynamically add and delete input fields. This used to work perfectly and now al of a sudden it doesn't. I really can't find the problem</p>
  
  <p>Here is the code</p>
  
  <pre><code>&lt;div&gt;
          &lt;input type="image" id="btnAdd" src="~/Images/button_add.png" /&gt;
          &lt;input type="image" id="btnDel" src="~/Images/button_remove.png"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Jquery</p>
  
  <pre><code>$(document).ready(function () {
      $aantal = 0;
      $('#btnAdd').click(function () {
          var num = $('.clonedInput').length; 
          var newNum = new Number(num + 1);      
  
          var newElem = $('#input' + num).clone().attr('id', 'input' + newNum);
  
          newElem.children(':eq(0)').children(':eq(0)').attr('id', 'check' + newNum).attr('name', 'check' + newNum).attr('checked', false).val('');
          newElem.children(':eq(0)').children(':eq(2)').attr('id', 'extra' + newNum).attr('name', 'extra' + newNum).css({ "background-color": "white" }).val('');
          newElem.children(':eq(1)').children(':eq(0)').attr('id', 'checkVerplicht' + newNum).attr('name', 'checkVerplicht' + newNum).attr('checked', false).val('');
  
          if (newNum &lt;= 6) {
              $('#input' + num).after(newElem);
              $('#inputCheck' + num).after(newElemCheck);
          }
  
          $('#btnDel').attr('disabled', false);
          $('#btnDel').show();
      });
  
      $('#btnDel').click(function () {
          var num = $('.clonedInput').length; 
          var priceNum = $('.clonedInput').length;
          $('#input' + num).remove();     
          $('#inputCheck' + num).remove();
  
          $('#btnAdd').attr('disabled', false);
  
          if (num - 1 == 1) {
              $('#btnDel').attr('disabled', true);
              $('#btnDel').hide();
          }
      });
  
      $('#btnDel').attr('disabled', true);
      $('#btnDel').hide();
  
  });
  </code></pre>
  
  <p>The btnAdd works fine, but the btnDel doesn't. When I click the add button, the delete button is supposed to be showed, so the added fields can also be deleted (until there is only 1 field left and the delete button is hided again). This used to work fine, I can't understand why it's not working anymore.</p>