title: Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'
body: <p>Running into an error on this Dom manipulation </p>
  
  <pre><code>var prependData = $('#income_ranges').children().first().clone();
  var prependedData = $('#income_ranges').children().last();
  var list = document.getElementById("income_ranges");
  list.insertBefore(prependData, prependedData);
  
  Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.
  </code></pre>
  
  <p>I get an error when I run this code and I dont know why. Any help is appreciated.</p>