jquery - How to add a tooltip to every class? -
Is adding tooltip to every class of I have several divisions of the same class like: I have to give them everything. For example, pseudo-code: Sorry if asked before, it can not be found anywhere. What are the meanings for all the sections that you found on a page? Or any element with class '.myclass'? The jquery tooltip takes all elements with the title This will result in: myClass on this page?
$ (". MyClass") .tooltip ({text: 'tooltip text'});
& lt; Div class = "myClass" title = "hello" & gt; ... & lt; / Div & gt; & Lt; Div class = "myClass" title = "hello" & gt; ... & lt; / Div & gt; & Lt; Div class = "myClass" title = "hello" & gt; ... & lt; / Div & gt; & Lt; Span class = "myClass" title = "hello" & gt; ... & lt; / Span & gt; & Lt; P class = "myClass" title = "hello" & gt; ..... & lt; / P & gt;
$ (function () {$ (".myClass") .tooltip ();}); $ {Function () ($. (".myclass") .tooltip ({content: function}} {return "My title" }}};});
Comments
Post a Comment