How can i set a tooltip for certain html element if I either know the class or id.
I have tried this so far but no luck.
$("[id*=lblAvgKPI]").tooltip();
How can i set a tooltip for certain html element if I either know the class or id.
I have tried this so far but no luck.
$("[id*=lblAvgKPI]").tooltip();
To test for both id myId
or class myClass
you can add them both to your selector separated by a ,
.
$("#myId, .myClass").tooltip();