I'm having trouble getting parseInt() to work. I've got an <li> list with the ids set to numbers. And I'm trying to use .attr() to extract the value and then parseInt() to turn it into a number. But it's not working. Here is my code:
var thisIDtoN = $('.card:eq(' + i + ')').attr('id');
var thisToSort = parseInt(thisIDtoN);
It's giving me the correct number when I print to my console but it's printing as a string. Any ideas?