Cool, works like a charm in 5.5 upwards, Opera, FF. I spent few hours with this and you did it in a minute or so.
On Sep 5, 5:40 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Klaus Hartl wrote: > > $(function() { > > $('li.deal').each(function() { > > var $a = $('h2 a', this); > > $(this).bind('click', function(e) { > > if (e.target != $a[0]) { > > location.href = $a.attr('href'); > > } > > }); > > }); > > }); > > shorter, shorter...: > > $(function() { > $('li.deal').each(function() { > var a = $('h2 a', this)[0]; > $(this).bind('click', function(e) { > if (e.target != a) { > location.href = a.href; > } > }); > }); > > }); > > (in this case we don't really need any normalization via attr('href')) > > --Klaus