I have a radio button containing 2 tabs as shown below. Now when I am trying to insert data based on the selected tab it is taking both the tabs data instead of selected tab. Can anyone help me where I am going wrong?
Radio button
<div align="left">
City Local: <input type="radio" onclick="javascript:taxi_booking();" name="yesno" id="outstation" value="city"> <br>
</div>
Based on radio button selection below is the code containing 2 tabs:
<ul class="nav nav-tabs" id="myTab">
<li class="active"><a href="#roundtrip_tbl">Round Trip</a></li>
<li><a href="#oneway_tbl">One Way</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="roundtrip_tbl">
......
</div>
<div class="tab-pane" id="oneway_tbl">
.....
</div>
</div>
Suppose I have selected roundtrip_tbl tab and entered data wrt it then when I dump the data using var_dump(), it is taking both tab’s data i.e., roundtrip_tbl as well as oneway_tbl.