Very simple onclick not firing.
creating divs in a loop containing the classes:
class=person glyphicon glyphicon-user
and i've tried selecting the class the only way i know
$('.person')click(function(){
console.log(something;
});
it just won't work, i can however print them all with the same selector, and i can fire onclick events on
$('body div').click
so its a div with class person, which leaves me clueless
thanks in advance.
edit: no browser errors, no action, nothing.
the method copy pasted from my code:
$('.person').click(function() {
console.log(something);
});