jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • rsalinas
    Member

    Hi swells, I don’t know if it’s too late for you but I think I solved your problem in a simpler way:

    According to Dimitar, with the following code you add the tooltip to a ListBox element:

    $(“.jqx-listitem-state-normal”).jqxTooltip({ content: ‘Tooltip.’, position: ‘mouse’, name: ‘listBoxTooltip’, theme: theme });

    But as you said, this code just add the same tooltip to each element.

    So I realized that you only had to change the jquery selector to include your Item ID, as in:

    $(“.jqx-listitem-state-normal:has(#elementID1)”).jqxTooltip({ content: ‘This is a div element 1.’, position: ‘mouse’, theme: theme });
    $(“.jqx-listitem-state-normal:has(#elementID2)”).jqxTooltip({ content: ‘This is a div element 2.’, position: ‘mouse’, theme: theme });

    It worked to me.

    Rodrigo Salinas.

Viewing 1 post (of 1 total)