Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- results = []
- $('#adress-sele option').each(function(){
- $(this).prop('selected', true);
- vehicle = $(this).text();
- console.log(vehicle)
- $('#adress-sele-two option').each(function(){
- $(this).prop('selected', true);
- entrance = $(this).text();
- console.log(entrance)
- $('#adress-sele-three option').each(function(){
- $(this).prop('selected', true);
- exit = $(this).text();
- $('#adress-sele-four option').each(function(){
- $(this).prop('selected', true);
- payment = $(this).text();
- try{
- $('#btnnjt').trigger('click');
- results.push({
- vehicle: vehicle,
- exit: exit,
- entrance: entrance,
- payment: payment,
- miles: $('#MilePost').val(),
- toll: $('#TollTrip').val()
- })
- } catch(e){}
- })
- })
- })
- })
- copy(JSON.stringify(results, null, 2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement