"> "> ">
<script src="<https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.0/js.cookie.min.js>"></script>
<script>
// Set a cookie
Cookies.set("cookieName", "cookieValue", { expires: 365 });
// Get a cookie
Cookies.get("cookieName");
// Check a cookie
if (Cookies.get("cookieName") == "cookieValue") {
// do something
}
// Delete a cookie
Cookies.remove('cookieName');
// Loop through each item with a class
$(".cms_item").each(function (index) {
console.log( $(this).index() );
});
</script>