I have a list of elements that have multiple classes, for example:
Try this,
if($(selector).attr("class").lastIndexOf("classToStartFrom") == 0) return "this selector class name starts with 'classToStartFrom'"; else return "this selector class name doesn't start with 'classToStartFrom'";
The code is not tested.