Because of different reasons I can NOT use $(\'.class\').click or on(\'click\', function..)
So I really have to use the onclick=\"\" event from the html element.
onclick="javascript:someFunction(this)" function someFunction(obj) { console.log($(obj).attr('class')); }
You will get the two classes in the order of writing.