使用方法

<body>  
  
Input: <input type="text" id="input"><br>  
<textarea id="log" readonly></textarea>  
  
<script src="jquery.min.js"></script>  
<script src="jquery.splendid.textchange.js"></script>  
<script>  
$("#input").on("textchange", function() {  
  //do something...
var value = this.value; $("#log").val(function(i, oldLog) { return oldLog + "textchange, value: " + value + "\n"; }); }); </script> </body>

附上插件链接

 

相关文章:

  • 2021-11-28
  • 2022-02-08
  • 2021-12-14
  • 2021-06-07
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案