SOLVED: Using jQuery-ui Tooltip with dynamic ajax content on click instead of hover

SOLVED: Using jQuery-ui Tooltip with dynamic ajax content on click instead of hover

I'm trying to implement this in a template where a variety of items may have the class assigned to implement the tooltip.

I have had success getting the tooltip on click only, and some success on getting the tooltip populated with ajax of the url is fixed, but I can't seem to extract the url from the link and get the content for the tooltip from that link and have the tooltip work on click rather than hover.

I had success doing something similar with dialog. I added a rel property which contains the url plus the element to load out of the link. That works. Can't seem to accomplish the same thing with tooltip. I've tried a variety of approaches and about everything Google has to offer.

Any ideas would be appreciated.