$('.descr_but').click(function (*!*event*/!*) { *!* event.stopPropagation();*/!* dialogBox.eq($(this).index('.descr_but')).dialog('open'); });