How can i add fontawesome icons to a button generated like this?
$.each(response, function (i, item) {
trHTML += '<tr><td>' + item.name + '</td><td>' + "<input
type='button' onclick='getTxtUrl(" + item.id + ")' style = 'width:
32px; height: 28px;' class='btn btn-success'>" + '</td></tr>';
});
I've tried so many things and am going crazy. I'm sure it will turn out to be the stupidest thing, missing a ' or something. Help please!