Get started with htmx CDN
BSD 2-Clause licensed
HTMX is a progressive enhancement library that enables making asynchronous HTTP requests and updating parts of a webpage without a full page reload.
Tags:- AJAX
- HTML
Stable version
Copied!
How to start using htmx CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with htmx CDN - cdnhub.io</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.cdnhub.io/htmx/1.9.11/htmx.min.js"></script>
</head>
<body>
<button id="load-data-btn">Load Data</button>
<div id="content"></div>
<script>
document.getElementById('load-data-btn').addEventListener('click', () => {
htmx.get('/api/data').then((response) => {
document.getElementById('content').innerHTML = response;
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
0.0.8
0.1.0
0.1.1
0.1.2
0.2.0
0.3.0
0.4.0
0.4.1
1.0.0
1.0.1
1.0.2
1.1.0
1.2.0
1.2.1
1.3.0
1.3.1
1.3.2
1.3.3
1.4.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.8.0
1.8.1
1.8.2
1.8.3
1.8.4
1.8.5
1.8.6
1.9.0
1.9.1
1.9.10
1.9.11
1.9.12
1.9.2
1.9.3
1.9.4
1.9.5
1.9.6
1.9.7
1.9.8
1.9.9
2.0.0
2.0.0-alpha2
2.0.0-beta1
2.0.0-beta2
2.0.0-beta3
2.0.0-beta4
2.0.1
*** 2.0.2