Jquery值改变事件支持火狐和ie浏览器,并且测试通过,绑定后台代码可以做成autocomplete控件。

具体代码列举如下:

 $(document).ready(function () {
       $("#UnitName").focus(function () {
           var bind_name = 'keyup';
           if (navigator.userAgent.indexOf("MSIE") != -1)
           { bind_name = 'input propertychange'; }
           $(this).bind(bind_name, function () {
               Alert(“弹出字符串”);
           })
       })
});

 利用此方法加上页面布局配合ajax可以autocomplete功能,如需请联系:QQ806693619

本文博客出处:http://www.kwstu.com/ArticleView/admin_201396102914917转载请注明!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2021-10-14
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-07-14
  • 2021-06-11
  • 2022-02-22
  • 2022-12-23
相关资源
相似解决方案