I'm wondering if it is possible to remove the "Delete" hypertext on the Edit Form whenever attachments are added. I've tried to use the JavaScript String replace() method to no luck, I've attached the code to.
<script src="https://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
var str = document.getElementById("idAttachmentsTable").innerHTML;
var res = str.replace("Delete", "");
document.getElementById("idAttachmentsTable").innerHTML = res;
});
</script>