Detect when 'Remove' is clicked on a file widget form element?
You can use javascript onclick() function 

&lt;button onclick="myFunction()"&gt;Click me&lt;/button&gt;

or jQuery 

$("#remove").click(function(){
    alert("The remove was clicked.");
});