| 1 | <html lang="en"> |
| 2 | <head> |
| 3 | <meta charset="utf-8" /> |
| 4 | <script type="application/javascript" src="../../../src/htmx.js"></script> |
| 5 | <title>History - Index</title> |
| 6 | <script> |
| 7 | htmx.logAll(); |
| 8 | </script> |
| 9 | </head> |
| 10 | <body style="padding:20px;font-family: sans-serif"> |
| 11 | <h1>History Disabled Elt Test</h1> |
| 12 | <p> |
| 13 | Click the button and then click back and the second button shouldn't be disabled... |
| 14 | </p> |
| 15 | <button hx-get="1.html" hx-disabled-elt="#another-button" hx-push-url="true"> |
| 16 | Click Me |
| 17 | </button> |
| 18 | <button id="another-button"> |
| 19 | Another button |
| 20 | </button> |
| 21 | </body> |
| 22 | </html> |