I have a JSP page which will be filled with dynamically created tables with data filled in from a database.
This page will look something like this
<div id="VehicleWrap">
<form id="bookvehicle" method="post" action="bookvehicle">
<table>
<tr>
<td class="label"><label id="lbodytype" for="transmission">Body Type</label></td>
<td class="field"><input id="bodytype" name="bodytype" type="text" value="<%= vehicle.getBodyType()%>" maxlength="50" readonly/></td>
<td class="status"></td>
</tr>
<tr>
<td class="label"><label id="ltransmission" for="transmission">Transmission</label></td>
<td class="field"><input id="transmission" name="transmission" type="text" value="<%= vehicle.getTransmission()%>" maxlength="50" readonly/></td>
<td class="status"></td>
</tr>
</table>
<table>
<tr>
<td class="label"><label id="lbodytype" for="transmission">Body Type</label></td>
<td class="field"><input id="bodytype" name="bodytype" type="text" value="<%= vehicle.getBodyType()%>" maxlength="50" readonly/></td>
<td class="status"></td>
</tr>
<tr>
<td class="label"><label id="ltransmission" for="transmission">Transmission</label></td>
<td class="field"><input id="transmission" name="transmission" type="text" value="<%= vehicle.getTransmission()%>" maxlength="50" readonly/></td>
<td class="status"></td>
</tr>
</table>
<table>
<tr>
<td class="label"><label id="lbodytype" for="transmission">Body Type</label></td>
<td class="field"><input id="bodytype" name="bodytype" type="text" value="<%= vehicle.getBodyType()%>" maxlength="50" readonly/></td>
<td class="status"></td>
</tr>
<tr>
<td class="label"><label id="ltransmission" for="transmission">Transmission</label></td>
<td class="field"><input id="transmission" name="transmission" type="text" value="<%= vehicle.getTransmission()%>" maxlength="50" readonly/></td>
<td class="status"></td>
</tr>
</table>
</form>
</div>
As you can see above I will have a list of tables within a form and div. However i cant form the tables into one long table and use one of the many table pagination plugins.
How would i paginate this so that for example, there would only be 5 tables to a pagination page.
Flexipage is a jQuery plugin for paginate any HTML content. Inspired
in Quick Paginate plugin.
Usage
To use the flexipage plugin, include jQuery and jquery.flexipage inside the tag of your document:
Then write some HTML like this:
And start flexipage
Also, see these resources: