You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Tooltip :: mouseover on textarea Created Jun 5, 2009

This thread is solved

Views: 4659     Replies: 2     Last reply Aug 16, 2010  
You must login first before you can use this feature

timmaah

Posts: 1

Registered:
Jun 5, 2009

Tooltip :: mouseover on textarea

Posted: Jun 5, 2009

Tooltip sets the trigger to "focus" for only "input". This causes inconsistent behaviors when using it on a textarea, as the textarea is set to mouseover and not focus.

Here is a _fix_ to have textarea act the same as input

(all that was added is: || link.is("textarea") .. twice)


		// mouse interaction 
		link.bind(link.is("input") || link.is("textarea") ? "focus" : "mouseover", function(e) { 	  
			self.show(e);  
			tip.hover(function() { self.show(); }, function() { self.hide(); }); 
		});
		
		link.bind(link.is("input") || link.is("textarea") ? "blur" : "mouseout", function() {
			self.hide(); 
		});

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Tooltip :: mouseover on textarea

Posted: Jun 6, 2009

Reply to: Tooltip :: mouseover on textarea, from timmaah
Thank you for this! Will be fixed on Tooltip 1.0.1. I try to do this next week.

lkuiloo

Posts: 1

Registered:
Aug 16, 2010

» Tooltip :: mouseover on textarea

Posted: Aug 16, 2010

Reply to: Tooltip :: mouseover on textarea, from timmaah
hi thanks for sharing that. but I want to add a small tooltips to help user when they click on the textarea http://www.clavier-arabe.fr

How can I do that ?