I am using jquery to present a number of products as per user's selection on "Show" dropdown menu. If user selects to get 9, 12, 16 or 20 products per page it should show accordingly in my list view.
Following is the code for HTML:
<form>
<span>Show:</span>
<select class="orderby number" name="page_size">
<option value="9" selected="selected">9</option>
<option value="12">12</option>
<option value="24">24</option>
<option value="36">36</option>
<option value="48">48</option>
<option value="60">60</option>
<option value="90">90</option>
<option value="100">100</option>
</select>
</form>
My list view varibale is:
items = Items.objects.all().
How can I restrict to load products according to the user's selected number of products?
Please help.
Regards,
A