开发者

Jquery Function Triggers

开发者 https://www.devze.com 2023-02-18 21:58 出处:网络
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 -

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

精彩评论

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