title: jQuery: The input element's type does not support selection
body: <p>I'm trying to send a form via AJAX, using jQuery. But I got the error when clicking the submitting button (it is actually a link, but doen't matter).</p>
  
  <p>That's the error in the console: </p>
  
  <pre><code>Failed to read the 'selectionDirection' property from 'HTMLInputElement': The input element's type ('checkbox') does not support selection.
  </code></pre>
  
  <p>I suspect the problem is that I have some checkboxes there with a multiple selection, and they've been parsed like this:</p>
  
  <pre><code>var logo = $('input[name=extra]:checked');
  </code></pre>
  
  <p>I've tried to stringify them, so it looked like: <code>var logo = JSON.stringify($('input[name=extra]:checked'));</code> but it didn't seem to fix the problem. </p>
  
  <p>What can be the reason or am I doing something wrong? </p>
  
  <p>UPD: <a href="http://jsfiddle.net/4mxsvch3/1/" rel="nofollow">jsFiddle here</a></p>