Anzamail support rate change html button

Here is an example of how you can create an HTML button to change the support rate for Anzamail:

<button onclick="changeSupportRate()">Change Support Rate</button>

<script>
  function changeSupportRate() {
    // Get the current support rate
    var currentSupportRate = document.getElementById("support-rate").value;

    // Change the support rate
    var newSupportRate = parseInt(currentSupportRate) + 1;

    // Update the support rate
    document.getElementById("support-rate").value = newSupportRate;

    // Send the updated support rate to Anzamail
    var xhr = new XMLHttpRequest();
    xhr.open('POST', 'https://api.anzamail.com/support-rate', true);
    xhr.setRequestHeader('Content-Type', 'application/json');
    xhr.send(JSON.stringify({ support_rate: newSupportRate }));
  }
</script>

In this example, we create a button with the text "Change Support Rate". When the button is clicked, the changeSupportRate function is called.

The changeSupportRate function gets the current support rate from an HTML element with the id "support-rate", increments it by 1, and updates the support rate in the HTML element.

The function then sends a POST request to the Anzamail API with the updated support rate.

Please note that you need to replace https://api.anzamail.com/support-rate with the actual API endpoint provided by Anzamail.

Also, you need to make sure that the API endpoint accepts JSON data and that the support_rate field is the correct field name for the support rate.

It's also important to note that this is just an example and you should adjust it according to your specific needs and the requirements of the Anzamail API.