修改css但它不处理事件

时间:2012-05-30 14:09:19

标签: jquery loopj

我正在使用具有令牌自动完成的搜索栏,众所周知的loopj :-)。即使我已经正确设置了表单字段,它们只会对loopj中编码的事件处理和我自定义js文件中的css修改做出反应(如下所示)。

如何通过在不同的文件中添加我自己的事件进行干预,假设loopj定义 handelr1 并定义 handler2 ,我该如何让它同时执行< em> handler1 和 handler2

这是我的jQuery文件:

(function($){
$(document).ready(function() {

$("#search-engine").tokenInput("http://playground.com/search/callback", {
  theme: "facebook",
  queryParam: "search_param"
});

$("#search-engine-2").hover(
    function () {
        $(this).append($("<span>***</span>"));
    }
  );
$("#search-engine-2").css("border","3px solid red");

$("#search-engine-2").hover(
    function () {
        $(this).append($("<span> ***</span>"));
    },
  function () {
    $(this).find("span:last").remove();
  }
);
  //li with fade class
  $("#search-engine-2.fade").hover(
    function(){
        $(this).fadeOut(100);$(this).fadeIn(500);
    });
  });
})(jQuery);

由于

0 个答案:

没有答案