Just starting out with HTMX and created a sample:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="462e322b3e682934210677687e6872">[email protected]</a>" integrity="sha384-wg5Y/JwF7VxGk4zLsJEcAojRtlVp1FKKdGy1qN+OMtdq72WRvX/EdRdqg/LOhYeV" crossorigin="anonymous"></script>
<form>
<button hx-get="https://google.com/">Click Me!</button>
</form>
</body>
</html>
Attempted to load the htmx script first followed by using hx-get
for a GET request on the button.
Encountering an issue where it's not working as expected!
The button seems inactive with no action, and there are no Console errors displayed!
If you have any insights on how to correctly utilize HTMX, please share your knowledge..
Thank you.
UPDATE
After removing the <form>
tags, it appears that HTMX is now being called but throwing these errors:
https://i.sstatic.net/aRKSp.png
Seeking guidance on proper implementation of HTMX