title: Jquery dynamic Class Selector Not Working
body: <p>I have written an on click event in which class is dynamic.</p>
  
  <p>here is my code</p>
  
  <h2>jQuery</h2>
  
  <pre><code>    $(document).ready(function(){      
        $('.offersidemenu li').click(function(){
  
        var sidemenu = $(this).text();
        alert(sidemenu); // Electronics is the output
       $('.' + sidemenu).css('border','5px solid green'); // not working 
     /* $('.Electronics').css('border','5px solid green'); Working  */
         });
      });
  </code></pre>
  
  <h2>HTML</h2>
  
  <pre><code>&lt;div class="color-shape Electronics Emi small rectangle"&gt;
  ----MY Content---
  &lt;/div&gt;
  </code></pre>