title: Appending a link with Jquery
body: <p>I'm trying to add a link to my page depending on what page you're already on. I'm using Squarespace to build this site, so the easiest way for me to do this would be with Javascript or Jquery.</p>
  
  <p>I think there is something wrong with this syntax that i'm missing. I already tried to break out of the quotes with a \, but that wasn't working. If I'm just outputting text, it works fine, but it seems to break when I try and make it work with a link.</p>
  
  <pre><code> if(loc == pageOne) {
  $("#pages").append("&lt;div&gt; &lt;a href=\"http://design.optimus.com/projects?currentPage=2\"&gt;Next Page&lt;/a&gt; &lt;/div&gt;")
      }else{
    if(loc == pageOneB){
      $("#pages").append("&lt;div&gt; &lt;a href=\"http://design.optimus.com/projects?currentPage=2\"&gt;Next Page&lt;/a&gt; &lt;/div&gt;")
    }else{
      if(loc == pageTwo){
       $("#pages").append("&lt;div&gt; &lt;a href=\"http://design.optimus.com/projects\"&gt;Previous Page&lt;/a&gt;&lt;/div&gt; ")
    }
   }
  }
  </code></pre>
  
  <p>Edit: I just checked, and the links seem to be working in Chrome, but not Firefox.</p>
  
  <p>Another Edit: So the link is working in Safari too. I guess the issue now is why not in Firefox? Is there something about this method that Firefox doesn't support?</p>