If you give these buttons classes and a data attribute you can use jQuery events instead.