How can I change other button name after a button click?

The default is relatively simple, after clicking on a button, a new element is displayed, which also contains a button. This button is different from the function, but has the same name as the first button and therefore causes irritation.

The following script solves exactly this problem.

<script type="text/javascript">
    jQuery( document ).on( 'click', '.KlasseDesErstenButtons', function( event ) {
  event.preventDefault();
  if (jQuery('KlasseDesElementsDasSichtbarWird').css('display') == 'block') { 
    jQuery("KlasseDesButtonsDerGeändertWerdenSoll").val('Anfrage absenden');
  }
    });
</script>
Without cookies
This website does not use cookies or tracking. More information can be found in the privacy policy.