re-execute button click after event.preventDefault();

I am generating rows dynamically for a table using ASP.NET Core Razor Pages and each row has a Delete button without button ID. example of generated HTML for a row: