title: Change Div Class on click
body: <p>I'm trying to change Div class on click. What I'm currently trying to do:</p>
  
  <p>I got this on my divs:</p>
  
  <pre><code>onclick"changeClass()"
  </code></pre>
  
  <p>and this is my function</p>
  
  <pre><code>function changeClass(){
      $("#test123").attr("class", "classname");
  }
  </code></pre>
  
  <p>However it's not working. You should now that I generate many divs with Id test123 with foreach loop so that may be the problem but I'm not really sure</p>