I am trying to call a jquery button click function from an element created by the append function, but it is not working below is my source code
var tr = $('#t_body').append(
"<tr>",
"<td><input type='checkbox' id='check' value='" + (Order_Result.ORDER_ID) + "'></td>",
"<td><button class='btn btn-outline-secondary' value='" + (Order_Result.ORDER_ID) + "' id='btn_ViewItem'><i class='material-icons'>pageview</i></button></td>",
"<td><button class='btn btn-outline-danger' value='" + (Order_Result.ORDER_ID) + "' id='btn_Delete' ><i class='fa fa-trash' aria-hidden='true'></i></button></td>",
for the above id btn_Delete i have created the function as follow
$("#btn_Delete").click(function(event) {
alert("same");
});
but when I click nothing is happening I have checked the console there is no error and even the appended table date with has been created properly.
what is the problem and why it is not working? please provide me a Solution Thanks in advance