I have problem with append function. This code doesn't work properly.
$(element).append("<a onclick='test('test')'> <i class='fa fa-spin fa-pencil' aria-hidden='true'></i></a>");
test function:
function test(value)
{
alert(value);
}
I suspect that the problem is related to onclick function.