title: How to concatenate variable in string in javascript
body: <p>I am using this </p>
  
  <pre><code>var abc = jQuery('#pl_hid_addon_name').val(); 
  alert(abc);
  
  var atLeastOneIsChecked = jQuery('input[name="addon-"'+abc+']:checked').length ;
  alert(atLeastOneIsChecked);
  </code></pre>
  
  <p>But it not worked
  It should be after concatenate like below</p>
  
  <pre><code>var atLeastOneIsChecked = jQuery('input[name="addon-base-bar2[]"]:checked').length;
  </code></pre>