|
Global qtip elements with different content
|
|
14th April, 06:57
Post: #1
|
|||
|
|||
|
Global qtip elements with different content
Hi All,
In brief, what I want to do is have multiple qtip tooltips on one page but I don't want to have to set the common elements between them all each time I want to display a tooltip. I want to have something similar to the following JS Code
That would set all links with a class="myqtip" to have the common elements. Then what I would like is just the ability to set the content with the following JS Code
That way I would not have to set the above common elements in every qtip call which would begin to become lengthy get hard to maintain. Is there a way to set all of the above common elements across all qtips on a page? The code above is just rough and I don't expect it to work but you get the general idea of what I am trying to achieve Thanks |
|||
|
14th April, 13:43
Post: #2
|
|||
|
|||
|
Global qtip elements with different content
Hi camslaz,
This is quite easily achievable like you said if you use an array of content and jQuery's each method: JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
15th April, 03:10
Post: #3
|
|||
|
|||
|
Global qtip elements with different content
Thanks Craig... works perfectly!
|
|||
|
16th August, 23:01
Post: #4
|
|||
|
|||
|
Global qtip elements with different content
This is one of the most useful trick imo, maybe worse including in the tutorial?
|
|||
|
17th August, 12:50
Post: #5
|
|||
|
|||
|
Global qtip elements with different content
I'll be adding this as a tutorial to the new documentation jd
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
6th November, 22:45
Post: #6
|
|||
|
|||
|
Global qtip elements with different content
Great way to apply common code-shrinking technique. Definitely a tutorial must-have. Thanks for the awesome plugin Craig!
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




