title: Symfony2 controller and Javascript argument passing
body: <p>I am developing an application using symfony2. I would like to know how I can receive arguments from a template in a controller because I want to store the value of the argument in the data base. The argument will get its value in a JavaScript script inside the template and must be passed to the controller when submitting a button. This is the script:</p>
  
  <pre><code>$("MatchedTag").click(function () 
   {
         $(this).toggleClass("highlight");
  
         var IdOfTag = this.id;  
  
   }); 
  </code></pre>
  
  <p>The variable I want to receive in the controller is IdOfTag. How can I do this? Thanks. </p>