01.html 521 B

12345678910111213141516171819202122
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title id="page-title">HTMX Demos</title>
  6. <script src="htmx-1-9-12.min.js"></script>
  7. <link rel="stylesheet" href="styles.css" />
  8. </head>
  9. <body>
  10. <h1 id="title">Demo</h1>
  11. <h2>hx-target : target another element</h2>
  12. <nav hx-get="/autonum/nav" hx-trigger="load"></nav>
  13. <div id="main">
  14. <div class="list"></div>
  15. <button hx-post="/contacts" hx-target="#main .list" hx-swap="innerHTML">
  16. Contacts
  17. </button>
  18. </div>
  19. </body>
  20. </html>