Alurfepiflern
New Member
i am creating new html element with js. \[code\]$('#write_comment').on('click',function(){ $(this).html('<textarea> </textarea><button onclick="test()">save</button>');});function test(){ alert('testme');}\[/code\]but after these \[code\]textarea\[/code\] and \[code\]button\[/code\] were created, if i click on \[code\]save\[/code\], nothing happens. is there any jquery function where i can say. \[code\](newly_created_element).find(js_function)\[/code\] ? that or something with same functionality would be nice to have. please help.