title: How to add button handler in Scala Play framework?
body: <p>I'm using scala play framework + scala template engine for front end. How can I add button handler? I need to call some function when clicking on it.</p>
  
  <pre><code>&lt;body&gt;
      &lt;p&gt;Database interface&lt;br /&gt;
          &lt;textarea style="margin: 0px; height: 193px; width: 533px;" cols="40" name="comment" rows="3"&gt;&lt;/textarea&gt;
      &lt;/p&gt;
      &lt;p&gt;&lt;input type="submit" value="Select" /&gt; &lt;input type="submit" value="Insert" /&gt;  &lt;input type="submit" value="Update" /&gt;&lt;/p&gt;
  &lt;/body&gt;
  </code></pre>