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?
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.
Comments
Post a Comment