I try to insert list item between list elements:
$('#deals-providers dt').each(function(index) {
if (index == 10) {
$(this).insertBefore($('<dt/>').text('More item'));
}
});
but it doesn't work. How can I do this?
indexupdated?