Guest User

Untitled

a guest
Feb 25th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. function updateGrid() {
  2. $(".grid_3").each(function(){
  3. var pp = $(this).find(".latest-offer-price").text();
  4. var price = Number(pp.substring(1, pp.length));
  5. var familyPrice = "£" + price * 4;
  6. $(this).find(".latest-offer-price").text(familyPrice);
  7. })
  8. }
  9. $(document).ajaxSuccess(function(){
  10. setTimeout(updateGrid,30)
  11. });
  12. updateGrid();`
  13.  
  14. `<div class="grid_3 alpha omega selected">
  15. <div>
  16. <p class="latest-type">
  17. <span class="latest-offer-price">£100</span>
  18. <span>pp</span>
  19. </p>
  20. </div>
  21. </div>`
Add Comment
Please, Sign In to add comment