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?