title: TypeError: 'stepUp' called on an object that does not implement interface HTMLInputElement
body: <p>I have an error in my use of AJAX:</p>
  
  <blockquote>
    <p>TypeError: 'stepUp' called on an object that does not implement interface HTMLInputElement....plete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:functi...</p>
  </blockquote>
  
  <p>Here is the parts of my code where I use it:</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-1.10.1.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>It is my javascript code that works on checkboxes where I defined them before:</p>
  
  <pre><code>function feedback() {
      var boxes = document.getElementsByClassName('box');
      for (var j = 0; j &lt; boxes.length; j++) {
          if (boxes[j].checked) {
              //assign(1);
              assign = 1;
          } else {
              assign = 0;
              //assign(0);
          }
          var wordid = document.getElementsByClassName('wordId')[j];
          $.ajax({
              url: "assigner.php",
              type: "POST",
              data: {
                  wordid: wordid,
                  assign: assign
              }
          }).done(function(e) {
              /*alert( "word was saved" + e );*/
          });
      }
  }
  </code></pre>
  
  <p>I tried this but it doesn't work and it doesn't give me any errors.</p>
  
  <pre><code>var newvalue = '';
  $('input[name=wordid\\[\\]]').each(function(index, element) {
      newvalue = newvalue + this.value + ',';
  });
  $.ajax({
      url: "assigner.php",
      type: "POST",
      data: {
          wordid: newvalue,
          assign: assign
      }
  }).done(function(e) {
      /*alert( "word was saved" + e );*/
  });
  </code></pre>