I\'m trying to change all the input name based on the list index of but it seems like it\'s not changing at all.
$(\'.test\').click(funct
$("li.songs").each(function(i) { $(this).find('input').attr('name', 'song' + i); });