开发者

Safari Problem with jQuery live click

开发者 https://www.devze.com 2023-02-12 10:13 出处:网络
I use a live click event on it开发者_如何学Cems in a dropdown: $(\'.list\').live(\'click\', function() {

I use a live click event on it开发者_如何学Cems in a dropdown:

$('.list').live('click', function() {
var listClass = $(this).attr('title');
  $('.post').fadeOut('fast');
  $('.post.'+listClass).delay(300).fadeIn(1000);    
});

Seems not to work in all browsers instead of ff?

Any suggestions?


maybe problem in

$('.post .'+listClass).delay(300).fadeIn(1000);


in your css add:

.list{cursor:pointer}
0

精彩评论

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