Skip to content
This repository was archived by the owner on May 30, 2020. It is now read-only.

klickreflex/jquery.listclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

jQuery ListClass

Add a class to any HTML list (<ul> or <ol>) depending on its number of elements (<li>).

Usage

Just include the script and call it on your list:

$("ul").listclass();

Options

$("ul").listclass({
  item_limit:       "4",           // when to start adding the class
  class_name:       "multi-column" // name of the class to add 
});

About

jQuery plugin that adds a class to an html list element if it has more than n list items.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors