I would like to delete the record that I upload with an img X, when I upload the file this is done well, showing a span with the name of the file in a label
"<span>"+urls[i].split('/').pop()+"<a id="+idMinuta+" href=\"javascript:EliminaRegistro();\"><img src=\"/sites/gadt/direcciones/dc/contabilidad/fape/SiteAssets/img/btn-borrar.png\" ></a>";
to be able to delete the registry I need the id, which is in <a>
try to put a click event on the $ (document) .ready, but it does not work for me.
$("img").click( function (event) {
alert();
});
the DeleteRegistration () function; just call the definitive function that deletes the registration