Do you assign the events then load the tab contents? If so then read this:
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F If you load the tab contents then assign the events, I have no idea what the problem could be. You'd need to provide more detailed code, or a minimal live demo page. Karl Rudd On Wed, Mar 26, 2008 at 7:54 AM, jquertil <[EMAIL PROTECTED]> wrote: > > I'm befuddled... my hover effects work only during initial load -when > content is reloaded via click() - the hover stops working. > > > // First, I populate a tab box with the contents of a hidden div > $('#tab_1').html( $('#tabcontent_1').html() ); > > // inside tabcontent_1 I am doing hover business on images whose > filenames end with "hover.png" > $('[EMAIL PROTECTED]').hover(...); > > > this works fine for images loaded like in line 1 above. > BUT! - here comes the weird thing: > > // my tabs have click events that load other divs into place > // and now the hover stuff doesn't work any more :( > $('#tab_1button').click(function(){ > $('#tab_1').html( $('#tabcontent_'+this.id).html() ); > } > > > anyone know the issue? I imagine it's something about how jQuery loads > the DOM objects, and now that I move this stuff around, it seems to > loose track of which element i want the hover assigned to - is html() > building just a string-copy? what do I have to do to get this > straight? load the tab contents via append? I tired that and nothing > showed up so I'm sticking with html() for now. >