title: pass a js variable to onkeyup input text
body: <p>Consider the below html code snippet-
      </p>
  
  <p>I'm trying to pass a js variable pages to <code>show_data_per_page</code> function,but I'm getting a syntax error.I also tried the following-</p>
  
  <pre><code>&lt;input type='text' name='search' onkeyup='show_data_per_page(pages);'/&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>&lt;input type='text' name='search' onkeyup='show_data_per_page("pages");'/&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;input type='text' name='search' onkeyup='show_data_per_page('+pages+');'/&gt;
  </code></pre>
  
  <p>But nothing seems to work.The eclipse editor refuses to recognize <code>pages</code> as a js variable.</p>
  
  <p>Please help.</p>