title: Set Checkbox as Checked by using id attribute as parameter
body: <p>I want to make a checkbox as "checked" by using its "id" attribute as the parameter via jQuery. In fact, if I specifically assign the checkbox with its id (checkbox1) directly, this works :</p>
  
  <pre><code>$("input:checkbox[id=checkbox1]").prop('checked', true);
  </code></pre>
  
  <p>But, I want to have the id as the parameter. So, here's what I tried (and didn't work):</p>
  
  <pre><code>var param="checkbox1";
  $("input:checkbox[id="+param+"]").prop('checked', true);
  </code></pre>
  
  <p>I guess I may be doing something wrong with quotations. Still couldn't figure it out though by trying many combinations. How do you think I should approach?</p>