I googled and googled and I concluded that it\'s very hard to get answer on my own.
I am trying to use jquery or JavaScript to get a property of clicked element. I c
$('#ele').click(function() { alert($(this).attr('class')); });
And here are all of the attribute functions.
http://api.jquery.com/category/attributes/