You can mention...">

Problem with jQuery.before (). Delete

All that problem is this ..

jQuery(function() { var $tooltip = jQuery('<div class="tooltip">You can mention..?</div>'); jQuery('.link-class:first').live("hover", function() { jQuery(this).before($tooltip); }, function() { jQuery(this).before($tooltip).remove(); }); }); 
+4
source share
1 answer

My guess is that you want:

 jQuery(this).prev('.tooltip').remove(); 

http://api.jquery.com/prev/

+6
source

All Articles