What's new

Closed A lightweight JS plugin for tags without JQuery library

Status
Not open for further replies.

_iamkurt

Honorary Poster
Joined
Aug 13, 2017
Posts
463
Reaction
308
Points
235
Hello PHCorner, gusto ko lang e share ang gawa kung lightweight (2.4 KB) JS plugin for tags. Ito yun:

Simple Tags
A lightweight JS plugin for tags without JQuery library

637265656e636173742f73696d706c652d746167732e676966.gif

Getting Started
Simply add the data-simple-tags with your desired values, for example Article, Blog, Page, Post, Category, Updates then, include .simple-tags for the default style.
HTML:
<div
   class="simple-tags"
   data-simple-tags="Article, Blog, Page, Post, Category, Updates">
</div>

NOTE! Ensure these files are included on your project.
HTML:
<link href="build/css/style.css" rel="stylesheet">
<script src="build/js/script-min.js"></script>

In addition to this, the data-simple-tags will update whenever a new tag or deleted tag has been made.

Demo
Visit You do not have permission to view the full content of this post. Log in or register now.

I hope magamit nyo sa projects nyo.
 

Attachments

Status
Not open for further replies.

Similar threads

Back
Top