javascript - jQuery: Removing Browser Generated Title Attribute -


i'm attempting remove browser generated title box appears anchors have title attribute. reason want doesn't interfere tooltip jquery.

as of right removing title attr on hover, won't reassign after removing hover state. how come?

http://jsfiddle.net/fj4xz/5/

thats because the

var title 

is in handlerin function , not defined in handler out. simplest solution put de var title outside of hover function , assign inside hover handlers.

edit: removing vars stated photon solution. highly recommend use vars though. code gets messy , unmaintainable if variables global not defined. thats opinion.

http://jsfiddle.net/rubenjonker/fj4xz/6/


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -