title: Dollar sign in Javascript string
body: <p>I want to parse an an element and set the area by currency.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;span id="price"&gt;¥82,84&lt;/span&gt;&lt;br/&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>        price = document.getElementById("price").innerHTML;
          price = price.slice(0,1);
  
          if(price == "€")
          {
              area = "europe";
          }
          if(price == "£")
          {
              area = "europe";
          }
          if(price == "\$")
          {
              area == "northamerica";
          }
          if(price == "\¥")
          {
              area == "asia";
          }
  </code></pre>
  
  <p>Euro and Pounds are working, but Yen and Dollar not. Does anyone have an idea?</p>