user1263981
user1263981

Reputation: 3147

How to set jquery tooltip for certain element or class

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

Answers (1)

Jan
Jan

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

Related Questions