How to toggle a div element between two images when click two submit buttons in a wordpress loop?

The ID has to be unique for all the posts, so I would suggest that you concatenate btn1-ID> in your code.

That and change your jquery selector code. That should do the trick!