title: Comparison of js andtemplate tags
body: <pre><code>&lt;script&gt;
  function compare(profile_id)
  {
  {% ifequal '{{profile.id}}'  %}
    selected_sub='selected';
  {% endifequal %}
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>How to compare <code>{{profile.id}}</code> and javascript variable <code>profile_id</code></p>