How do I Update the Content in Jquery UI Tooltip in Realtime?

后端 未结 6 1828
我在风中等你
我在风中等你 2020-12-31 01:58

I have an element that when hovered over, it displays the price of the item (in a game). I\'m using the jQuery UI tooltip to power the display of the information about each

6条回答
  •  情话喂你
    2020-12-31 02:49

    You can change the content of jQuery Tooltip after initialization as follows:

    $( ".selector" ).tooltip( "option", "content", "Awesome title!" );
    

    Here is a demo.

    See the API for more details.

提交回复
热议问题