I agree 100% with avoiding compiled frameworks (React/Angular/Svelte, whatever).
But betting on jQuery being around and functional in 10 years is a gamble.
The modern DOM is very user friendly. I'd advocate for skipping any framework and writing plain JavaScript.