Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function filterTankstellen(tankstellen, kraftstoff){
  2.     var preise = [];
  3.  
  4.     for(var i = 0; i < max; i++){
  5.         $(tankstellen[i].prices).each(function() {
  6.             if(this.type == kraftstoff) {
  7.                 console.log(tankstellen[i].id);
  8.                 var tanke = {tankstellen[i].id : this.price};
  9.                 preise.push({i : this.price,});
  10.             };
  11.         });
  12.     };
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement