I’m attempting to remove the browser generated title box that appears with anchors that have a title attribute. The reason I want to do this is so it doesn’t interfere with my tooltip jQuery.
As of right now I am removing the title attr on hover, but it won’t reassign it after removing yourself from the hover state. How come?
Thats because the
is in the HandlerIn function and not defined in the handler out.
Simplest solution is to put de var title outside of your hover function and assign it inside the hover handlers.
Edit: Removing the vars as stated by Photon is also a solution. I highly recommend you use vars though. Your code soon gets messy and unmaintainable if variables that are global are not defined. But thats just my opinion.
http://jsfiddle.net/RubenJonker/fj4xz/6/