Refer to the below code snippet to display the fetched details in a div element. Here we fetched the checked items through a button click using getSelectedItems method. It returns text, data and item (collection of element).
Refer to the below link for sample
This page will automatically be redirected to the sign-in page in 10 seconds.