12345678910111213141516171819202122 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title id="page-title">HTMX Demos</title>
- <script src="htmx-1-9-12.min.js"></script>
- <link rel="stylesheet" href="styles.css" />
- </head>
- <body>
- <h1 id="title">Demo</h1>
- <h2>hx-target : target another element</h2>
- <nav hx-get="/autonum/nav" hx-trigger="load"></nav>
- <div id="main">
- <div class="list"></div>
- <button hx-post="/contacts" hx-target="#main .list" hx-swap="innerHTML">
- Contacts
- </button>
- </div>
- </body>
- </html>
|