Auto-scroll to hint

How to auto-scroll to the hint when I press the shortcut key for it?

Are you referring to cloze hints? Or is it a custom notetype?

Anyhow, if you have an element with id=“hint”, you can scroll it into view with JS:


Can you please simplify since I don’t understand the codings well enough. Please take a look at the screenshot, where and what code shall I put to directly scroll down to the hint?