title: Set div id in javascript based on modal content
body: <p>On my homepage, index.html, I have a div for a rating system like this</p>
  
  <pre><code>&lt;div class="srtgs" id="rt_??"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Then in my javascript I have a function that generates modal content for each feature in an array, within this I need each modal to have the div above like this</p>
  
  <pre><code>&lt;div class="srtgs" id="rt_&lt;feature.properties.name&gt;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I tried to change the id in javascript which works but then on page refresh when it loads the modal it is back to rt_?? so it does not get the correct ratings from the DB</p>
  
  <p>Any help is appreciated cheers</p>