Get started with zepto CDN
MIT licensed
Zepto: minimal JS library for DOM interaction, jQuery-compatible API.
Tags:- mobile
- framework
Stable version
Copied!
How to start using zepto CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with zepto CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/zepto/1.2.0/zepto.min.js"></script>
</head>
<body>
<button id="myButton">Click me</button>
<script>
document.addEventListener('DOMContentLoaded', function() {
const myButton = document.getElementById('myButton');
myButton.addEventListener('click', function() {
$(this).hide(); // Hide the button using Zepto's $ function
alert('Button clicked!');
});
});
</script>
</body>
</html>
Copied!
Copied!