jquery: hide title attribute but not remove it -


i have seen people solution on mouse over, grab value in title attribute, then, remove value. while on mouse out, we'll put on.

$(this).attr('title','');  

or

$(this).removeattr('title');  

i want know possible hide tooltip appearing removing title attribute?

thanks!

no can't, browser decide title attribute. can, however, save node later reference (and possibly restoring title):

$(this).data("title", $(this).attr("title")).removeattr("title"); 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -