I am trying to write html code using jquery but this code for a functional button seems to not work for me, I have added the button functionality and works fine when the same line(as below) is written in .html file.
function()
{
var html '<div>';
html += '<button id="add-button" type="button" role="button">ADD</button>';
html += '</div>'
$("#id").append( html );
}