title: how to call function on the basis of particular button in node.js express
body: <p>I want to call function on the basis of which button is clicked.<br>
  I have EJS file here Called test.ejs <br></p>
  
  <pre><code>&lt;form&gt;
          &lt;input type="submit" value="Click here 1"&gt;&lt;/input&gt;
          &lt;input type="submit" value="Click here 2"&gt;&lt;/input&gt;
          &lt;input type="submit" value="Click here 3"&gt;&lt;/input&gt;
          &lt;input type="submit" value="Click here 4"&gt;&lt;/input&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And i have JS file name test.js<br></p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  /* GET home page. */
  router.get('/', function(req, res) { 
  console.log("Get the Request from test...!!!");
  });
  function button1(){
    console.log("User Click Button 1");
  }
  function button2(){
    console.log("User Click Button 2");
  }
  function button3(){
    console.log("User Click Button 3");
  }
  function button4(){
    console.log("User Click Button 4");
  }
  module.exports = router;
  </code></pre>
  
  <p>I want to call <code>fuction button1()</code> when button 1 click similarly with button 2,3 and 4.<br>
  What is the procedure. Please help me with some example.</p>