1 2 3 4 5 6 7 8 9 10 |
<button class='pushme'>PUSH ME</button> <button class='pushme'>PUSH ME</button> <script> $(".pushme").click(function () { var $el = $(this); $el.text($el.text() == "Dont Push" ? "Push Me": "Dont Push"); }); </script> |
![wordpress category](https://www.codehaven.co.uk/wp-content/uploads/2018/12/wp12-1.png)