Posted By

Rigtersirius on 01/21/14


Tagged


Versions (?)

Uno


 / Published in: JavaScript
 

Hola

  1. var valor = 0;
  2.  
  3. $('span.promo-itm-price-num').each(function( index ) {
  4.  
  5. if(valor==0){
  6. valor = $( this ).text();
  7. }else{
  8. valor = $( this ).text() - valor;
  9. }
  10.  
  11. });
  12.  
  13. console.log(valor);

Report this snippet  

You need to login to post a comment.