Jquery pop-up hide header attribute text

I am currently using the title attribute of my 'a' tag to show and hide images matching this tag.

However, when you hover over “a,” the text of the annoying title appears.

Is it possible to disable this pop-up text without completely disabling the title attribute? Any help is great!

Greetings

Danc

----- edit ------

here is the working code that goes like xhtml strict !!!!

$ (document) .ready (function () {

$(\"ul.projects li a\").hover(
    function(){

    var largeAlt = $(this).attr(\"class\");

    $(\"ul.image_display li#image_hover img\").attr({ src: largeAlt }); 
    $(\"ul.image_display li#image_hover img\").fadeIn();

},
    function(){

    $(\"ul.image_display li#image_hover img\").attr({ src: \"\" }); 
    $(\"ul.image_display li#image_hover img\").fadeIn();

});

});

+3
source share
3 answers

You can try using your own attributes instead of using the title attribute.

<a customtagattribute="some value" id="link1" href="#">Linkety!</a>

EDIT: JSON -

var links = { "link1": "attribute value 1", "link2": "attribute value 2", ... };
+4

, . , Javascript, . , .

+1

How to use the binding identifier property? If the path to the image is included (i.e. Characters are not allowed in identifiers), you can use an AJAX request with an identifier to get the actual URL (or actual image).

+1
source

Source: https://habr.com/ru/post/1709593/


All Articles