jquery - How to add a tooltip to every class? -


Is adding tooltip to every class of myClass on this page?

I have several divisions of the same class like:

    

I have to give them everything. For example, pseudo-code:

  $ (". MyClass") .tooltip ({text: 'tooltip text'});   

Sorry if asked before, it can not be found anywhere.

What are the meanings for all the sections that you found on a page?

  & 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;   

Or any element with class '.myclass'?

The jquery tooltip takes all elements with the title

  $ (function () {$ (".myClass") .tooltip ();}); $ {Function () ($. (".myclass") .tooltip ({content: function}} {return "My title" }}};});   

This will result in:

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -