title: Grails check checkbox with value same as variable
body: <p>Hi I have this value that I passed to the gsp </p>
  
  <pre><code>${d.causalOrganism}
  </code></pre>
  
  <p>I have this three checkboxes and I want one of them to be checked based on the above value. How can I do so? I tried  but doesn't work.</p>
  
  <pre><code>&lt;label for="causalOrganism"&gt;Causal Organism:&lt;/label&gt;
  
    Fungi&lt;input type="checkbox" value="Fungi" name="causalOrganism" id="causalOrganism1" onclick="checkOrganism(this.id)"/&gt;
    Bacteria&lt;input type="checkbox" value="Bacteria" name="causalOrganism" id="causalOrganism2" onclick="checkOrganism(this.id)"/&gt;
    Virus&lt;input type="checkbox" value="Virus" name="causalOrganism" id="causalOrganism3" onclick="checkOrganism(this.id)" /&gt;
  </code></pre>