I am new to Bootstrap so would appreciate if soemone can help please?
I have a simple form which appears on the desktop (as below).
However, in order to show the same screen on the mobile phone or a tablet (i.e. responsive screen).
What I like is the first screen to show a list of Town/City (i.e. 3 just clickable rows - Carshalton, Cheam and Morden Park) as shown below:
Town/City |
Carshalton |
Cheam |
Morden Park |
And when the user clicks on one (e.g. Carshalton) then it uncollapses (can be collasped as well) and shows 4 rows at the bottom as shown below:
I would appreciate if someone can amend the code to show it on the mobile device as requested above
<h2 class="text-dark">London Region</small></h2>
<br />
<h3 class="text-primary">Leaflet Distribution - Data Entry</small></h3>
<table class="table table-bordered">
<thead style='background:#eeeeee;'>
<tr>
<th>Town/City</th>
<th>Allocated Village</th>
<th>No of Leaflets in Allocated Village</th>
<th>No of Leaflets in Allocated City</th>
<th>No of Members</th>
</tr>
</thead>
<tbody>
<tr>
<td style='background:#eeeeee;'>Carshalton</td>
<td style='background:#eeeeee;'>Banstead + Mugswell</td>
<td style="width:0%">
<asp:TextBox ID="TextBox1" width="80px" runat="server" Enabled="True" />
</td>
<td style="width:0%">
<asp:TextBox ID="TextBox2" width="80px" runat="server" Enabled="True" />
</td>
<td style="width:0%">
<asp:TextBox ID="TextBox3" width="80px" runat="server" Enabled="True" />
</td>
</tr>
<tr>
<td style='background:#eeeeee;'>Cheam</td>
<td style='background:#eeeeee;'>Dorking + Wotton</td>
<td style="width:0%">
<asp:TextBox ID="TextBox4" width="80px" runat="server" Enabled="True" />
</td>
<td style="width:0%">
<asp:TextBox ID="TextBox5" width="80px" runat="server" Enabled="True" />
</td>
<td style="width:0%">
<asp:TextBox ID="TextBox6" width="80px" runat="server" Enabled="True" />
</td>
</tr>
<tr>
<td style='background:#eeeeee;'>Morden Park</td>
<td style='background:#eeeeee;'>Effigham + East Horsley</td>
<td style="width:0%">
<asp:TextBox ID="TextBox7" width="80px" runat="server" Enabled="True" />
</td>
<td style="width:0%">
<asp:TextBox ID="TextBox8" width="80px" runat="server" Enabled="True" />
</td>
<td style="width:0%">
<asp:TextBox ID="TextBox9" width="80px" runat="server" Enabled="True" />
</td>
</tr>
</tbody>