or you can test inside the bind function: if ($('#header').next().('attr','id') != "new") { $('#header').after('<div id="new">tester</div>'); }
On Nov 29, 7:34 am, Dave Methvin <[EMAIL PROTECTED]> wrote: > Do you only want the button to work once? If that is the case, use .one > () instead of .bind().