|
[Solved] QTip content from existing div element on page?
|
|
23rd November, 16:20
Post: #1
|
|||
|
|||
|
QTip content from existing div element on page?
Is it possible to load the content of the qtip from an existing div element on the page?
Something like this: <div style="display:none;"> <table> <tr><td>NT</td></tr> <tr><td>0</td></tr> <tr><td>1</td></tr> ... </table> </div> The tooltip content could either be just the table contained within the div or the whole thing... Thanks (and sorry if this question has already been answered here... I did look and didn't find anything) |
|||
|
23rd November, 16:27
Post: #2
|
|||
|
|||
|
[Solved] QTip content from existing div element on page?
Hi dcash,
You sure can. Simply provide the content attribute a jQuery DOM array instead of some text: JS Code
Note: This method clones the element. If you want to simply append it i.e. remove the old one, add a .remove() command to the end of the content selector like so: JS Code
Check the documentation for more details on it here: http://craigsworks.com/projects/qtip/doc...ntent-text Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
23rd November, 16:41
Post: #3
|
|||
|
|||
|
QTip content from existing div element on page?
Thanks!!
That's what I needed!! |
|||
|
7th December, 23:45
Post: #4
|
|||
|
|||
|
RE: QTip content from existing div element on page?
Hi,
Is it possible to turn an existing DOM element to a qtip without cloning it? I need to keep the events tied the DOM element Thanks |
|||
|
8th December, 18:29
Post: #5
|
|||
|
|||
|
RE: QTip content from existing div element on page?
Unfortunately no, at least not in qTip 1.0. In qTip2 passing a jQuery object simply appends those DOM elements to the tooltip, preserving the bound events, though.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




