模板简介
模板使用简要说明
主题配色及保存
顶部导航对应侧边栏菜单切换
侧边栏菜单的JS初始化
点击侧边栏刷新
iframe版本右侧内容区域404问题
关于非iframe版本菜单高亮
iframe版本子页面内新建TAB
iframe中操作当前Tabs
iframe页面内的loading
多标签页(Multitabs)插件说明
关于multitabs的一些调整
调整左侧的宽度
webuploader使用时候的问题
关于模板的默认主题或者配色
关于模板的字体图标问题
关于版权和商业用途
模板中固有的插件
1
光年模板的loading和消息(v3)
2
rangeSlider滑块(v3)
3
bootstrap-datepicker日期(v3)
4
bootstrap-datepicker日期(v4)
5
bootstrap-datetimepicker日期时间(v3)
6
bootstrap-datetimepicker日期时间(v4)
7
perfect-scrollbar滚动条
8
Chart.js图表
9
bootstrap-colorpicker颜色选择
10
jquery-confirm对话框
11
jquery.tagsinput标签
12
bootstrap-notify消息(v4)
13
chosen.jquery关联选择
14
jquery.bootstrap.wizard向导
15
clockpicker时间选择(v4)
16
bootstrap-maxlength长度验证(v4)
17
bootstrap-select下拉选择(v4)
18
fullcalendar日程(v4)
19
bootstrap-table表格插件
插件项目包含插件
1
Date Range Picker时间段选择
2
material风格时间选择器
3
dropzone上传
4
uploadify上传
5
webuploader上传
6
H5图片上传
7
cropper图片裁剪
8
ckeditor富文本编辑器
9
editor.md编辑器
10
summernote富文本编辑器
11
tinymce富文本编辑器
12
ueditor富文本编辑器
13
wangeditor富文本编辑器
14
bootstrap-validate表单验证
15
jquery-validate表单验证
16
bootstrap-select下拉选择
17
bootstrap-selectN联动
18
bootstrap-lyear-select下拉
19
select2下拉
20
bootstrap-multiselect下拉多选
21
lyear-dropdowntree下拉树状
22
ZTree树形菜单
23
treeview树状插件
24
jstree树状结构
25
imgVer拼图滑块
26
sliderVerification滑块验证
27
bootstrap3-dialog模态框
28
layer弹窗
29
jquery.auto.complete自动填充
30
fixedheadertable固定表头
31
fontIconPicker图标选择
32
fullcalendar日程
33
jQuery Raty评分
34
lyear.loading加载
35
Bootstrap MaxLength长度验证
36
jquery.toolbar弹出式工具栏
37
jquery.bootstrap-touchspin输入框微调
插件项目包含示例
1
表单布局示例
2
聊天页面示例
3
logo处使用文字
4
模态框中使用Tab选项卡
5
模态框最大化
6
顶部消息示例
7
搜索布局
8
搜索布局2
9
搜索布局3
10
侧滑边栏区域
11
选择示例
12
选择示例2
13
选择示例3
14
代码演示切换
15
留言列表布局
16
数据统计布局
17
产品价格布局
18
搜索框
19
用户头像篇
20
动画篇
21
其他篇
22
另一种侧边栏菜单
bootstrap-maxlength长度验证(v4) - 光年模板说明文档 - 笔下光年
网站首页
bootstrap-maxlength长度验证(v4)
插件使用bootstrap-maxlength 1.9.1。 github地址:http://mimo84.github.io/bootstrap-maxlength/ **默认使用** 默认当输入框获得焦点时,提示将显示:  ```html <input type="text" class="form-control" maxlength="25" name="defaultconfig" id="defaultconfig"> ``` ```javascript $("input#defaultconfig").maxlength({ warningClass: "badge badge-info", limitReachedClass: "badge badge-warning" }); ``` **阈值** 使用 `threshold` 选项表示还有多少字符可以开始显示指示。  ```html <input type="text" maxlength="25" name="thresholdconfig" class="form-control" id="thresholdconfig"> ``` ```javascript $("input#thresholdconfig").maxlength({ threshold: 20, alwaysShow: false, warningClass: "badge badge-info", limitReachedClass: "badge badge-warning" }); ``` **位置** 您所需要做的就是用其中一个字符串指定 `placement` 选项。如果未指定,则将被定位到“底部”。  ```html <input type="text" class="form-control" maxlength="25" name="placement" id="placement"> ``` ```javascript $("input#placement").maxlength({ // 可使用的值有: bottom, left, top, right, bottom-right, top-right, top-left, bottom-left 和 centered-right。 // 你也可以使用 : bottom-right-inside, top-right-inside, top-left-inside and bottom-left-inside. alwaysShow: true, placement: "top-right-inside", warningClass: "badge badge-info", limitReachedClass: "badge badge-warning" }) ``` **始终显示** 如果 `showOnReady` 为 `true`,则在指示器就绪时始终显示。默认值:`false`。  ```html <input type="text" class="form-control" maxlength="25" name="alloptions" id="alloptions"> ``` ```javascript $("input#alloptions").maxlength({ showOnReady: true, warningClass: "badge badge-success", limitReachedClass: "badge badge-danger", separator: " 个字符; ", preText: "已输入 ", postText: " 个可用字符。", validate: !0 }); ``` **文本域** Bootstrap maxlength 支持文本区域和输入。即使在旧的IE上。  ```html <textarea id="textarea" class="form-control" maxlength="225" rows="3" placeholder="此文本区域限制为225个字符。"> ``` ```javascript $("textarea#textarea").maxlength({ threshold: 255, warningClass: "badge badge-info", limitReachedClass: "badge badge-warning" }); ``` 涉及的文件: - `lyear_js_maxlength.html` - `js/bootstrap-maxlength/bootstrap-maxlength.min.js`
上一篇:
clockpicker时间选择(v4)
下一篇:
bootstrap-select下拉选择(v4)
阅读设置
字体大小
小号 (14px)
标准 (16px)
大号 (18px)
超大 (20px)
特大 (24px)
阅读主题
默认
护眼模式
夜间模式
古卷模式
恢复默认
确定