title: How to limit row number in pagination with select option
body: <p>I have a page is already pagination. But now i want to implement new feature:
  when we select number of rows in select box. The webpage will be show matching data. I tried it with ajax. A limit variable has been send, but controller can not get it to process. Can anyone help me!</p>
  
  <p><a href="http://i.stack.imgur.com/NkB8c.png" rel="nofollow">here is sample image</a></p>
  
  <p>html code:</p>
  
  <pre><code>&lt;form method="post"&gt;
  &lt;select name="select_limit" id="select_limit"&gt;
       &lt;option value="10"&gt;10&lt;/option&gt;
       &lt;option value="100"&gt;100&lt;/option&gt;
  &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>ajax code:</p>
  
  <pre><code>$(document).ready(function() {
      $('#select_limit').change(function() {
          var limit = $("#select_limit option:selected").val();
          $.ajax({
              type: "POST",
              cache:false,
              url:"&lt;?php //link to controller ?&gt;",
              //send data
              data:{'limit': limit},
              });
      });
  });
  </code></pre>
  
  <p>and in controller, I get a limit variable the same normal code:</p>
  
  <pre><code>$limit = $_POST['select_limit'];
  </code></pre>