jQuery function to toggle a click and run custom code on them (.toggle() always shows or hides an element, so we can't use this anymore).