I have a list of elements that have multiple classes, for example:
A class starting with btn and which can not be the first class:
btn
Working fiddle: http://jsfiddle.net/c9Tdx/
$("input[class^='btn'],input[class*=' btn']").each(function(){ //whatever });