Using built in Jquery on the front end

I hate using shortcode plugins for things like accordions and spoilers. I ‘m wondering how you would go about using the pre-packaged Jquery UI to do this. When working with posts/pages I’m comfortable using html and css. I have implemented css style accordions before but not using Jquery. So the question is how would I go about using the built in Jquery via html/classes in my content on the front end so I don’t have to deal with plugins?