title: Twig variable syntax in onclick js function
body: <p>I have for example a twig variable:</p>
  
  <pre><code>{% set emailmult1= 'op000' %}
  </code></pre>
  
  <p>and I js function:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function seleccionartod(emailmult1, estado) {
  for (var i = 0; i &lt; 1; i ++)
  document["forms"]["emailmultiple"]["op000000"]["checked"] = estado;
  document["forms"]["emailmultiple"][emailmult1 + i]["checked"] = estado;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>This works:</p>
  
  <pre><code>&lt;input name="checkbox1" type="checkbox" value="Todos" onclick="seleccionartod( 'op000' , this.checked)"/&gt;
  </code></pre>
  
  <p>but this doesn't works:</p>
  
  <pre><code>&lt;input name="checkbox1" type="checkbox" value="Todos" onclick="seleccionartod( {{ emailmult1 }} , this.checked)"/&gt;
  </code></pre>
  
  <p>Thanks</p>