54
rated 0 times
[
57]
[
3]
/ answers: 1 / hits: 31089
/ 9 Years ago, thu, july 23, 2015, 12:00:00
Running into an error on this Dom manipulation
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'.
I get an error when I run this code and I dont know why. Any help is appreciated.
More From » javascript