Results 1 to 1 of 1
Mar 25, 2011, 10:24 #1
- Join Date
- Nov 2007
- 0 Post(s)
- 0 Thread(s)
[Code Review] other solution extra element
I'm fairly new to creating jQuery plugins. I'm familiar with jQuery but not with plugin writing.
The plugin is a rebirth of tispy tooltip. I wrote it all myself because I thought tipsy was lacking a few functions. I'll give them credit if it's done so don't worry about that.
This is my code to make a tooltip show on click and remove on another click. Special about this type is the body, it's like jgrowl that you can have multiple tooltips on the screen. How I do it now is giving a id: this with my options because of the $.data function I use, only 1 element can be added at once. It works but isn't there a better way to allow more tooltips on the screen and let the browser remember which tooltip to close on which element that got clicked.