A Lightweight plugin base on jQuery
1、include jquery
<script src="//your/path/of/jquery/jquery-2.1.4.min.js"></script>
2、include plugin
<script src="//your/path/of/js/multi-line.js"></script>
3、call the plugin
$('.multi_input').multiLine({});
| name | default | description |
|---|---|---|
| separator | ',' | data separator |
| width | 200 | line width,px |
| addText | '添加' | text of add button |
| delText | '删除' | text of delete button |
| dataValues | 'data-values' | attribute of data store |