Why the message is not displayed when you click on the button #knopka_OK
?
function form_input() { html = ''; html += '<button id="knopka_OK">Запись хода</button>'; $(html).appendTo('#body') $('#knopka_OK').hide() $('#qwe').click(function () { form_input(); }) $('#qwe').click(function () { $(this).unbind('click'); }) $('#knopka_OK').click(function () { alert('fgtrhfyh'); }) }
form_input()
called? it does not start anywhere, accordingly no handlers will be hung on the button ... - thunder