I'm trying to find text inside an element whose class is either myClass1 OR myClass2.
var myText = $(this).find('.myClass1:first').text();
This works fine but I am unsure if/how I can check for one of 2 classes (my element will only have one class out of these 2 I mentioned).
Thanks for your help!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…