What do you mean by saving? Saving it for the user or for the store owner?
If it is for the user. You can use the localStorage or sessionStorage or cookies.
If it is for the owner of the website, that will be a little complicated.
You can assign a div to call and replace innerHtml or innerText with the value.
Volunteering to assist you! Likes and Accept as Solution is highly appreciated.✌ ☕ Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated. Need EXPERIENCED Shopify developer without breaking the bank? Hire us at Made4Uo.com for quick replies. Stay in control and maintain your security by avoiding unnecessary store access!