[jQuery] Re: Determine if mouse is over a specific element

2008-02-12 Thread Smith, Allex
$('#element').mouseover(function(){ alert('Hover!'); }); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of debussy007 Sent: Tuesday, February 12, 2008 3:13 PM To: jquery-en@googlegroups.com Subject: [jQuery] Determine if mouse is over a spe

[jQuery] Re: Determine if mouse is over a specific element

2008-02-12 Thread Alexandre Plennevaux
Hi debussy007, see the tutorials section on events bubbling: http://docs.jquery.com/Tutorials:AJAX_and_Events example: $(document).ready(function() { $('body').click(function(event) { if ($(event.target).is('h3')) { $(event.target).toggleClass('highlighted'); } }); }); On Feb 13