I have a horizontal tabbed structure that has 4 tabs and ALL opens by default, according to this Screenshot:

Now my questions are:
I want to
Suppose I have one dummy.html page on which I have one link, called the Travel tab. When I click on this link, I redirect to this tab containing a page called offer.aspx, where I want the Travel tab to open by default.
Please find the nested structure code on offer.aspx:
<script type="text/javascript">
function showonlyone(thechosenone) {
$('.newboxes').each(function (index) {
if ($(this).attr("id") == thechosenone) {
$(this).show(0);
}
else {
$(this).hide(0);
}
});
}
</script>
<div style="height: 30px;">
<div style="padding: 5px; float: left; color: #666;">
<a id="myHeader1" class="bmark active" href="javascript:showonlyone('newboxes1');">All</a><span> | </span>
</div>
<div style="padding: 5px; float: left; color: #666;">
<a id="myHeader2" class="bmark" href="javascript:showonlyone('newboxes2');">Travel</a><span> | </span>
</div>
<div style="padding: 5px; float: left; color: #666;">
<a id="myHeader3" class="bmark" href="javascript:showonlyone('newboxes3');">Shopping</a><span> | </span>
</div>
<div style="padding: 5px; float: left; color: #666;">
<a id="myHeader5" class="bmark" href="javascript:showonlyone('newboxes5');">Value Added Services</a>
</div>
<div>
<div class="newboxes" id="newboxes1" style="display: block; padding: 20px 5px 5px 5px; width: auto;">
</div>
<div class="newboxes" id="newboxes2" style="display: block; padding: 20px 5px 5px 5px; width: auto;">
</div>
<div class="newboxes" id="newboxes3" style="display: block; padding: 20px 5px 5px 5px; width: auto;">
</div>
<div class="newboxes" id="newboxes5" style="display: block; padding: 20px 5px 5px 5px; width: auto;">
</div>
user4388915
source
share