Can you clarify what you mean?
If you change this:
<li><a href="#fragment-1"><span id="end">Last</span></a></li>
in
<li><a href="#fragment-2"><span id="end">Last</span></a></li>
Then it will download # fragment-2 when you click on it.
If you really want to get the data on the "clicked" tab you can hook into the tabsselect event
$('.ui-tabs-nav').bind('tabsselect', function(event, ui) {
}
Further reading is available on the JQuer UI docs
ChadT
source
to share