var index = arrPrice.findIndex(el => el[0] == 'Адлер'); в вашем случае |
Цитата:
|
var arr = ['comfort','business','miniven','bus']; arr.forEach(function(el){ $('#'+el+'show').click(function(){ $('#'+el+'container').show(); arr.forEach(function(elt){ if(elt!=el)$('#'+elt+'container').hide(); }); }); }); протестируйте |
Часовой пояс GMT +3, время: 07:24. |