Access Tab Index on Creation

Access Tab Index on Creation


Hi All;
In my tabbed application I've run across the need for buttons to be
embedded in the tab. I thought I might be able to do this via a JS
onClick call attatched to an image, ie:
<li><span>Tab <img onClick="javascript:doSomething()" /></span></li>
which works just peachy in and of itself, but it would make it a lot
easier if I could write a template for the new tab that is aware of
it's creation context, something like:
<li><a href="#{href}" title="dcPane"><span>#{label} <img src="/global/
images/nav/doSomething.png" onClick="javascript:doSomething(#
{tabID})" /></span></a></li>
Is this possible without editing the jQuery source? Maybe through the
add event handler?
Thanks for any ideas!
Matt Walker