Add line break within tooltips

后端 未结 27 2509
北恋
北恋 2020-11-28 02:23

How can line breaks be added within a HTML tooltip?

I tried using
and \\n within the tooltip as follows:



        
27条回答
  •  遥遥无期
    2020-11-28 02:45

    Well if you are using Jquery Tooltip utility, then in "jquery-ui.js" Javascript file find following text:

    tooltip.find(".ui-tooltip-content").html(content);
    

    and put above that

    content=content.replace(/\</g,'<').replace(/\>/g,'>');
    

    I hope this will also work for you.

提交回复
热议问题