JQuery (JS) beginner here. I am creating a simple loading animation for a file upload form via JQuery. The objective is to show the animation once an `Upload` button is pressed *and a file was chosen by the user*. In case no file was chosen and solely `Upload` was pressed, do nothing. 

Currently, relevant parts of my code are:

```
$(document).ready(function() {
 if ($('#p2').change(function())){
       if ($("#Btn2").bind("click", function(event))){
           $("#loader2").show();
           $("#spinner2").show();
           $("#Btn2").hide();
       }
   }
});

```

Looks straight forward enough but doesn't work (nothing happens). Perhaps I'm making a rookie mistake. Can someone help rectify this? Ask me for more code in case needed.