i think u r doing it right... just that u will have to remove the attribute onclick="return false;" from the button tag that is probably preventing ur event to bubble.
I dont know if i am even close to answering ur question. But if i am not, can u provide more explanation on what u r trying to do and what is happening? -GTG On 8/14/07, Steve Finkelstein <[EMAIL PROTECTED]> wrote: > > > Hi all, > > Using this block of code: > > -- > > $(document).ready(function() { > $('body').click(function(event) { > if ($(event.target).is('h3')) { > $(event.target).toggleClass('highlighted'); > } > }); > }); > > -- > > If my element I'm trying to toggle is <input type="button" id="button- > accept" name="accept" value="Accept" onclick="return false;">, is > there anyway I can do something similar to if($ > (event.target).is('#button-accept')); > > If not, what does $(event.target) have to point to in .is() to trigger > my input in this situation? > >