Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. results = []
  2. $('#adress-sele option').each(function(){
  3.   $(this).prop('selected', true);
  4.   vehicle = $(this).text();
  5.   console.log(vehicle)
  6.   $('#adress-sele-two option').each(function(){
  7.     $(this).prop('selected', true);
  8.     entrance = $(this).text();
  9.     console.log(entrance)
  10.     $('#adress-sele-three option').each(function(){
  11.       $(this).prop('selected', true);
  12.       exit = $(this).text();
  13.       $('#adress-sele-four option').each(function(){
  14.         $(this).prop('selected', true);
  15.         payment = $(this).text();
  16.         try{
  17.         $('#btnnjt').trigger('click');
  18.         results.push({
  19.          vehicle: vehicle,
  20.          exit: exit,
  21.          entrance: entrance,
  22.          payment: payment,
  23.          miles: $('#MilePost').val(),
  24.          toll: $('#TollTrip').val()
  25.         })
  26.         } catch(e){}
  27.       })
  28.     })
  29.   })
  30. })
  31. copy(JSON.stringify(results, null, 2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement