If you want the first one found (but only one) use
var myText = $(this).find('.myClass1,.myClass2').eq(0).text();
If you want the first of each kind (two results) then look at the answer provided by @jelbourn.
If you want the first one found (but only one) use
var myText = $(this).find('.myClass1,.myClass2').eq(0).text();
If you want the first of each kind (two results) then look at the answer provided by @jelbourn.