title: Firebug: TypeError: 'click' called on an object that does not implement interface HTMLElement
body: <p>I get this Error when I click the button with the ID "#123" - I don't know what's the reason for this.</p>
  
  <p>Code in my PHP File:</p>
  
  <pre><code>$("#123").click(function(){
      getCheckedValues('oberpunkte', 'input:checkbox[class=oberpunkte]:checked', 'input[type=textfield]');
      getCheckedValues('unterpunkte', 'input:checkbox[class=unterpunkte]:checked', 'input[type=textfield]');
      ajaxCheckedValues('POST', 'selected.php', '#sumadd');
  });
  </code></pre>
  
  <p>My JS Functions for the Code above:</p>
  
  <pre><code>function getCheckedValues(arrayname, selector, nextselector){
      var array = arrayname;
      array = new Array();
      $(selector).each(function(){
          array.push($(this).next(nextselector).val());
      });
  }
  
  function ajaxCheckedValues(type, url, div){
  
      var kategorie = ($("input:radio:checked[name='kategorie']").attr('class'));
  
      $.ajax({
          type: type,
          url: url,
          data: { oberpunkte : oberpunkte, unterpunkte : unterpunkte, kategorie : kategorie },
          success: function (data)
                                 {
                                  console.log(data);
                                  $(div).html(data);
                                 }
            });
   }
  </code></pre>
  
  <p>Firebug Error:</p>
  
  <p><img src="https://i.stack.imgur.com/doBbu.png" alt="enter image description here"></p>
  
  <p>I also alerted "kategorie" - it's not null. Any ideas?</p>
  
  <p>HTML/PHP of Button and DIV:</p>
  
  <pre><code>echo("&lt;input type='button' name='test' id='123' value='Checklist speichern'/&gt;");
  
  echo("&lt;div id='sumadd' value=''&gt;&lt;/div&gt;");
  </code></pre>
  
  <p>EDIT NOTE: Added HTML/PHP</p>