Reputation: 3147
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();
Upvotes: 1
Views: 127
Reputation: 5815
To test for both id myId
or class myClass
you can add them both to your selector separated by a ,
.
$("#myId, .myClass").tooltip();
Upvotes: 1