Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Qtip assigned to an element, element is destroyed and created again, qtip doesnt work
6th July, 16:25 (This post was last modified: 6th July 16:26 by lovesniper.)
Post: #1
[Solved] Qtip assigned to an element, element is destroyed and created again, qtip doesnt work
Hi!

In my page theres an element named "box", i apply qtip to this element using this code:

JS Code
$('#box').qtip({prerender: true, style: {classes: 'ui-tooltip-youtube'}, position: {target: 'mouse'}, content: {text: 'Qtip text'}});


The problem is that, after that, i destroy the "box" element and i create the same element again (With the same id), so happens that qtip doesn´t match with this new element, I know.

So, ¿How to indicate to the created qtip to point to the new element created (Which has the same id which pointed QTIP)?

¡Thanks! (And sorry for my poor english Wink )
Find all posts by this user
Quote this message in a reply
25th August, 17:10
Post: #2
RE: Qtip assigned to an element, element is destroyed and created again, qtip doesnt work
try using .live()
http://craigsworks.com/projects/qtip2/tu...ents/#live
Find all posts by this user
Quote this message in a reply
25th August, 18:29
Post: #3
RE: Qtip assigned to an element, element is destroyed and created again, qtip doesnt work
Also worth noting that the above response is for qTip2, which I recommend upgrading to anywho Smile

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Dynamic Content From Page Element frogg3862 2 91 3rd May 17:12
Last Post: frogg3862
  the plugin do not work correctly with jquery 1.7? vic906 1 148 12th April 22:09
Last Post: Craig
  [Solved] Cannot get qtip to work on Ruby on Rails kakubei 5 402 3rd March 16:40
Last Post: Craig
  will qtip work in this situation seeker7805 1 242 2nd March 00:28
Last Post: Craig
  calling .html using the element id matthearn 0 309 24th February 15:08
Last Post: matthearn
  [Solved] Attach QTIP to any element with attribute "tooltip" slhilbert 7 405 15th February 14:44
Last Post: slhilbert
  [Solved] Can't install or make it work - guide for newbie & donator marz 7 626 25th January 15:52
Last Post: Craig
  [Solved] How to append QTip to some other element instead of document body prateekbansal 2 501 11th January 07:01
Last Post: prateekbansal
  [Solved] Multi tips not 100% times work dmhorse 1 273 9th January 18:19
Last Post: Craig
  ajax.once:false option not work in IE sse.michael 2 624 9th December 01:44
Last Post: sse.michael



User(s) browsing this thread: 1 Guest(s)