Scottus schrieb: > i have page > > <div id="one"> click one</div> > > <div id="two"> click one</div> > > i want a script in the header to be able to report the ID of the div > that I clicked on.
$(function() { $('#one, #two').bind('click', function() { alert('Clicked: ' + this.id); }); }); -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/