Ff JQuery can not listen to the keyup input event solution
- 2020-03-30 00:48:47
- OfStack
$(document).ready(function(){
$('#news_title').bind('input',fun).bind('keyup',fun);
});
//function list
var fun=function(){
value=$(this).val();
$('.prev').text(value);
}
Note:
Bind (' input 'fun) For keyup under ff
Bind (' keyup 'fun) used in Internet explorer