Get started with oj CDN
MIT licensed
OJ: library for data manipulation, sorting, filtering, and pagination.
Tags:- templating
- html
- css
- js
- jquery
- backbone
Stable version
Copied!
How to start using oj CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with oj CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/openjs-jquery@0.2.1/dist/oj.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.cdnhub.io/oj/0.2.1/oj.min.js"></script>
</head>
<body>
<div id="content">
<button id="btn">Toggle</button>
<div id="target">
<p>Hidden by default</p>
</div>
</div>
<script>
$(document).ready(function() {
$("#btn").ojButton().on("click", function() {
$("#target").ojToggle();
});
});
</script>
</body>
</html>
Copied!
Copied!