Hi, I have an element ('a') which is no class and no Id, dynamically i created the class during the document loaded.

this is how i add class on a element.
Code:
$('.mainclass').find('a').eq(1).addClass('firstclass');
I putted an alert so that i will know that i click the firstclass.

Code:
$(function(){
  $('firstclass').click(function(){
    alert("this is firstclass");
});
  
});
unfortunately it will not alert.but i inspect in the firebug the firstclass is in there..I don't know why it did not alert.

please enlighten my mind on this,.

Thank you in advance.