SHARE
TWEET

Untitled

a guest Jan 12th, 2017 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var symbol = $("div.price > h5 > div.num").text().replace(/[d.]*/, "");
  2.    
  3. <div class="price">
  4.         <h5 class="biguns">
  5.             <div class="num">
  6.                 €12.28
  7.             </div>
  8.             Lowest Price Per Night
  9.         </h5>
  10.     </div>
  11.    
  12. var symbol = $("div.price > h5 > div.num").text().replace(/[d.]+/g, "");
  13.    
  14. var symbol = $("div.price > h5 > div.num").text().replace(/d+.?d+/, "");
  15.    
  16. var symbol = $(".num").text().substr(0,1);
RAW Paste Data
Top