
Rod R
3,045 Pointsmy 'up' buttons are removing list items instead of moving up
I've reviewed the code multiple times and compared with the video, and there's no JS console error, but the UP buttons are removing items. Where's the error?
1 Answer

Daniel Baker
14,386 PointsTry == or ===?
//original line 13
if (event.target.className="remove") {
//fixed
if (event.target.className == "remove") {
//You got it right in line 18
if (event.target.className == "up") {
I'm sure you know what the single = does from the rest of your code, so I am assuming you don't need me to explain that you are trying to assign "remove" to event.target.className. I am assuming it's just a typo.