I have a jQuery pluging that I currently apply to a particular class
$(".myClass").myPlugin({ ... });
Currently it will apply it to any <th> in my table that has the class .myClass
How can I re-write the code to call that plugin if the class is present and <th> has the title attribute?
$(".myClass[title]")should do it.Edit: After your edit, if you specifically want
thelements, use$("th.myClass[title]")