这是一款非常酷的jQuery实现的Bootstrap插件,允许输入用户字符数.它可以让你显示字符用户插入的最大长度。

1、引入jquery.js及bootstrap-maxlength.js

2、给页面的input或textarea加上maxlength属性

3、配置选项

$(function(){
	$('#name').maxlength({
		alwaysShow: true
	});
})
代码:

效果如图:

Bootstrap-maxlength使用


官网:http://mimo84.github.io/bootstrap-maxlength/


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2021-12-21
  • 2021-07-18
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-06-15
  • 2021-12-10
  • 2021-11-26
  • 2022-12-23
相关资源
相似解决方案