There is such code:
$('.block_ch').click( function() { var attribute = $(this).attr('id'); alert(attribute); } ); But by pressing silence. Where can there be a mistake? The function is in $(document).ready along with the other working functions .click