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.
you need to pass this reference when calling the function
this
try this
CLICK HERE ...... //same for others
jquery
function someFunction(obj,abc) { alert(abc); alert($(obj).attr('class')); }
with plain javascript (without Jquery)
function someFunction(obj,abc) { alert(obj.className); }
fiddle here