title: How to hide dynamically created html element with a dynamic ID
body: <p>I have a dynamically created html elements under a for loop in JavaScript, these dynamic elements also has a dynamic id, my question is how can I hide the dynamically created elelment with a dynamic id. Thank you.</p>
  
  <p>This is my code so far. I want to target the dynamic id and hide it.</p>
  
  <pre><code>product_list += '&lt;div class="plProductContainer hide" data-pids="' + a_data.products[i].pid + '" id="'+a_data.products[i].pid+'"&gt;'; 
  </code></pre>
  
  <p>It has a dynamic id.</p>