有人可以幫我連接這些代碼位。我使用的是Twitter引導程序,我有一個下拉列表,當用戶在下拉列表中選擇一個項目時,我想顯示與所選項目相對應的選項卡。更改基於HTML的選項卡選擇值
這裏是我的html代碼到目前爲止...
<select>
<option>Select...</option>
<option value=1>Individual Investor</a></option>
<option value=1>Joint Investors</option>
<option value=3>Company Investor</option>
<option value=1>Trust (Individual Trustees)</option>
<option value=2>Trust (Corporate Trustees)</option>
<option value=1>SMSF (Individual Trustees)</option>
<option value=2>SMSF (Corporate Trustees)</option>
</select>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#tab0" data-toggle="tab">Investor Details</a></li>
<li class="hidden"><a href="#tab1" data-toggle="tab">Individuals</a></li>
<li class="hidden"><a href="#tab2" data-toggle="tab">Joint</a></li>
<li class="hidden"><a href="#tab3" data-toggle="tab">Company</a></li>
</ul>
<div class="tab-content">
<div class="active tab-pane" id="tab0">
<div class="alert">
Select your Investor Type from the Dropdown list above
</div>
<legend>Investor Details</legend>
<label>Select your Investor Type from the Dropdown list above</label>
</div>
<div class="tab-pane" id="tab1">
<legend>Individual Investor Details</legend>
<label>First Name</label>
<input class="input-xlarge" type="text" placeholder="First Name">
</div>
<div class="tab-pane" id="tab2">
<legend>Joint Investor Details</legend>
<label>Both Names</label>
<input class="input-xlarge" type="text" placeholder="Enter both Names">
</div>
<div class="tab-pane" id="tab3">
<legend>Company Investor Details</legend>
<label>Company Name</label>
<input class="input-xlarge" type="text" placeholder="Enter Company Name">
</div>
</div>
</div>
什麼我需要得到這個功能? 在此先感謝。
我把小提琴放在一起 http://jsfiddle.net/newL1406/VcFwd/1/ – user1400396 2013-03-17 11:56:16