I want to get the ID of the inner DIV using javascript. Please see the fiddle http://jsfiddle.net/5yn2hLv9/8/ . When i click on First Tab/Second Tab.., the id of the tab should be retrieved in the javascript function getInnerDivId() . please suggest.
Below is sample code:
<div dojoType="dijit.layout.TabContainer" style="width: 100%;height: 100px" tabStrip="true" onclick="getInnerDivId()">
<div dojoType="dijit.layout.ContentPane" class="one" title="First tab" selected="true" id="1" >
11
</div>
<div dojoType="dijit.layout.ContentPane" class="one" title="Second tab" id="2">
2222
</div>
<div dojoType="dijit.layout.ContentPane" class="one" title="Last tab" id="3">
333333
</div>
</div>