hi! check the tab ID, or check currently selected tab
On 11 апр, 21:00, Claudio Poli <masterk...@gmail.com> wrote: > hi everyone, > I've this situation: an X number of tabs; in tabs content there's a > div classed .to_be_replaced and links for paginating. > when I click on a link it should replace the content > of .to_be_replaced. > > The problem here is that every div.to_be_replaced gets replaced, and > not only the one that belongs to the currently shown tab. > > this is the code: > > $('#tabcontainer').tabs({ > show: function(event, ui) { > $('div.pagination a', ui.panel).live('click', > function() { > $.blockUI({ > message: null > }); > $("ui.panel, .to_be_replaced").load(this.href); > return false; > }); > } > }); > > any help is appreciated, thanks.