title: retrieve html data with javascript
body: <p>so i have this line of code in my html </p>
  
  <pre><code>    &lt;td class="product-price"&gt;
          &lt;span class="amount" id="price"&gt;3915.00&lt;/span&gt; 
      &lt;/td&gt;
  </code></pre>
  
  <p>how can i that number "3915.00" in my javascript as an integer?</p>
  
  <pre><code>    &lt;script&gt;
      function myFunction()
          {     
              var priceStr = document.getElementById('price').value;
              var priceInt = parseInt(price);              
          }
  
      &lt;/script&gt;
  </code></pre>
  
  <p>can i do it this way? or are there any alternatives? </p>