xxxxxxxxxx
/* setTimeout to wait render complete then can getElementById */
setTimeout(() => {
let focusElement = $(id);
if (focusElement) {
$('#List').animate({
scrollTop: focusElement.offset()?.top ?? 0
}, 2000);
}
}, 1000);
}