title: Twig: how to override id attribute of form_widget?
body: <p>So this is a pretty straightforward question but the solution seems not so straightforward to a twig beginner like myself. Basically, I want to apply some javascript to a set of forms, so I need the field id's to remain the same across those different forms (or to somehow inject these id's into the javascript file which I'm not sure how to do if it is external).</p>
  
  <p>I use this to render the textarea widget:</p>
  
  <pre><code>{{ form_widget(form.text) }}
  </code></pre>
  
  <p>Which automatically gives it an id that I want to change. Doing this:</p>
  
  <pre><code>{{ form_widget(form.text, {'attr': {'id': 'ootn_blogbundle_entry_text') }}
  </code></pre>
  
  <p>just adds another id to the field and since there are now two of them, the second one (mine) is simply ignored.</p>
  
  <p>How do I tell form_widget to give the textarea a different id?</p>