title: Javascript confirmation in play framework scala templates
body: <p>I was wondering if there is a way to use a traditional javascript confirmation box with the scala html templates in the play framework. </p>
  
  <pre><code>@for(item &lt;- listItems) {
              &lt;li&gt;
                  &lt;b&gt;Item: &lt;/b&gt;@item.name&lt;br&gt;
  
                  @form(routes.Application.deleteItem(item.id)) {
                      &lt;input type="submit" value="Delete" class="btn btn-danger"&gt;
                  }
              &lt;/li&gt;&lt;br&gt;
          }
  </code></pre>
  
  <p>That is the view I am working with at the minute. As you can see from the code it brings up list of "item" objects and a delete button appears beside each of them. I just wanted to prompt some sort of confirmation dialog before the deleteItem method actually gets called.</p>
  
  <p>I know how to do this with some standard HTML and javascript but thats only for modifying html elements, is there away to do this using the play form helpers?</p>
  
  <p>Thanks</p>