title: adding href using javascript append
body: <p>Probably a rudimentary for some, but this is driving me crazy! I am not sure what I did wrong - I cannot/not allowed(?) to append a href - it is simply didn't get processed at all.</p>
  
  <pre><code>$('#lastViewed').append('&lt;a href="/Path/To?_q="' + string + '&gt;');
  $('#lastViewed').append(.....some other stuffs.....);
  $('#lastViewed').append('&lt;/a&gt;');
  </code></pre>
  
  <p>I am trying to wrap the "other stuffs" with a 
  Thanks!  </p>
  
  <p><b>Edit</b><br/>
  The complete line:</p>
  
  <pre><code>$('#lastViewed').append('&lt;div id="id_' + x + '&lt;a href="/PVProduct/ProductDetail?_productID=' + JSON.parse(localStorage.getItem("pid_" + x)).productID);
  </code></pre>