Condense repetitive jQuery .click function
Steps to fix this:


Add class 'amount-button' to all buttons
Add attribute data-mobileamount to all buttons and assign values like
100, 200, .. to each button.


For example:
&lt;button class="amount-button" data-mobileamount="100" &gt;Mobile Amount 100&lt;/button &gt;
&lt;button class="amount-button" data-mobileamount="200"&gt;Mobile Amount 200&lt;/button&gt;

 (function($) {
  var mobileAmount = 300;
  $('.amount-button').click(function() {
    $('*').removeClass('-amount-active');
    $(this).addClass('-amount-active');
    mobileAmount = $(this).data('mobileamount');
  });
})( jQuery );