title: JavaScript variable value in element.append
body: <pre><code>$('#test-list').append($(document.createElement("li")).attr({id: data.msg}));
  $('#'+data.msg).append($(document.createElement("img")).attr({src: "kep.php?kep=upload/"+data.msg+"&amp;w=180;&amp;h=150;"}));
  </code></pre>
  
  <p>Does not work, because of the <code>$('#'+data.msg).</code> param. I don't know how to fix it. I want to make a sub-element to the #test-list and name it to the value of data.msg variable.</p>