How to use multiple instances of 'toggle' on one page?

How to use multiple instances of 'toggle' on one page?

I am using toggle's 'default functionality' code but it doesn't seem to be tailored for multiple toggles on one page. How can I alter the javascript to make that work for any number of toggles?