Create specific exceptions for JQuery-UI tooltip behavior in a document -


i have series of divs identifiable class dialog content templates. among other things, content divs have title attributes used jquery dialog title of dialog window, behavior want. however, these titles used tooltip, , means mousing on part of dialog isn't other control causes dialog title show tooltip. behavior don't want.

how can exclude dialog content div, not children, tooltip behavior? currently, i'm enabling tooltips whole document that's one-liner. can change buttons, have lot of dynamically-created buttons (edit/delete buttons table rows etc) have re-initialized tooltips on each dialog reload, want avoid if can. dialog content divs exist in dom page load, if there's class can apply or method can call on class selector after enabling tooltips in general, ideal.

edit: found working solution, possibly not ideal one: enable tooltips document, disable them dialog content class, when opening dialog, re-enable them children of dialog content classes (or specific dialog being opened). functions, i'm asking jquery traverse dom way many times.

found ideal solution; when setting tooltips whole document, set items property ":not()" selector:

$(document).tooltip({     items: ":not(.dialogcontent)",     ... }); 

Comments