02.10.2022, 09:35
Hier der Code den du suchst, viel Spaß damit
<button class="target">Click here</button>
<button class="target">Click here</button>
PHP-Code:
<?php
$(document).ready(function ($) {
function a() { alert("First handler for .toggle() called."); }
function b() { alert("Second handler for .toggle() called."); }
var ab = [a, b];
$('.target').click(function () {
ab.reverse()[1]();
});
});