title: How to use jQuery append() via id when id is present in a localStorage variable?
body: <p>I want to use jquery append() using an id as my selector, however the id is stored in a local variable. I have the tried the following code but it is not working. What am I doing wrong?</p>
  
  <pre><code>$('#'+localStorage.productUrl+'').append('&lt;span&gt;item is added&lt;/span&gt;');
  </code></pre>
  
  <p>Here is my code in a fiddle: <a href="http://jsfiddle.net/tCuKt/20" rel="nofollow noreferrer">http://jsfiddle.net/tCuKt/20</a></p>