开发者

Jquery Function Triggers

I'm struggling with something that I expect should be fairly straightforward! - is it possible to have more than one function trigger - for example in the below code img.swap triggers the event -

 $("ul.navigation img.swap").live("mouseover mouseout",
      function (event) {{);

Is it possible to add other triggers - for example if I had a different image class such as img.over could this be added in something similar to -

$("ul.navigation img.swap" & "img.over").live("mouseover mou开发者_C百科seout",
      function (event) {});

Thanks paul


Use a comma.

$("ul.navigation img.swap, img.over")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜