[jQuery] Re: element:gt(0) works in FF, but not in Safari/IE/Chrome

2008-12-18 Thread Jan Rocho
I have done some additional testing and I think this might be a jQuery bug which was introduced at v1.2.5. jQuery v1.2.4 was not released and the script works in all browsers up to jQuery 1.2.3. But one of my other scripts only works in jQuery 1.2.6, so I need that version. On Thu, Dec 18, 2008

[jQuery] Re: element:gt(0) works in FF, but not in Safari/IE/Chrome

2008-12-18 Thread Ricardo Tomasi
Try this: function menu_loader() { var speed = 200; $(#menu ul).each(function(i){ var $that = $('#menu ul:eq('+i+') *:gt(0)'); /* v1 - hide items if not active */ $that.not('.active').hide(); $(this).attr('id', 'c' + i)

[jQuery] Re: element:gt(0) works in FF, but not in Safari/IE/Chrome

2008-12-18 Thread DasJan
Yes, I'm using Firebug on Firefox, but the Problem only shows up in Safari / IE. Here is an example page: http://dev.rocho.org/nico-jquery You can click on the menu (Arbeiten, Vita, Kontakt) and the menu will expand. It should work in FF, but not in Safari / IE - why? It also works in Safari/IE