You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$('#contentArea > li').each(function () {
var letter = $('a', this).text().charAt(0);
if (!$(this).parent().find('[data-letter="'+ letter +'"]').length) {
$(this).parent().append('<div data-letter="'+ letter+'"><span><b>'+ letter +'</b></span></div>');
}
$(this).parent().find('[data-letter="'+ letter +'"]').append(this);
});
The text was updated successfully, but these errors were encountered:
What's the proper way to append a function which groups (large) data alphanumeric, on each scroll? I tired with .append() but had no luck
Output would be something like:
A
aaa
B
bbb
..etc
Current setup
...
and do something like:
The text was updated successfully, but these errors were encountered: