Split command
Split a string into DOM elements.
Basic Usage (HTML)
data-jkit="[split:separator=,;container=div]"
Advanced Init (JavaScript)
$('#myelement').jKit('split', { 'separator': ',', 'container': 'div' });
Options
Option | Values | Default | Description |
---|---|---|---|
separator | String | By what to split the string? | |
container | DOM element type | span | Into what kind of DOM element to encapsulate the strings? |
before | HTML | Stuff to add before the new string | |
after | HTML | Stuff to add after the new string |
Events
Examples
Comma to list:
Splitting a comma separated string into a “ul > li” list:
Replacements
There are currently no replacements for this command.
[ Learn more about replacements ]
Discussions
Do you have questions or do you want to suggest new features? Than head over to our new community:
[ jKit Community ]