title: Javascript, add string if true
body: <p>I need to modify this function:</p>
  
  <pre><code>function checkPermissions(fid, obj) {
  
  $("#permissions_"+fid+"_canview").attr("checked", obj.checked);
  
  }
  </code></pre>
  
  <p>if the param "n" is "true" then instead of #permissions it'll output #permissionsSet.</p>
  
  <p>is that possible?</p>