/**
 * 内容改变时并不会触发事件,但是在失去焦点的时候会触发。
*/
$("#inputid").change(function(){
    console.log($(this).val());
});
/**
 * 只要文本类容发生改变,就会触发该事件
 */
$("#inputid").bind("input propertychange",function(){
    console.log($(this).val());
});

 

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-01-09
  • 2021-12-02
  • 2021-12-28
相关资源
相似解决方案