Untitled

 avatar
unknown
plain_text
a year ago
535 B
2
Indexable
function updateSpecification() {
    let element = $('section.power-train-container #wds-tab-list-container-id .active');
    let elementToChange = $('.specification-container .specification .value')[0];
    
    if (element.text() == 'e-POWER') {
        elementToChange.innerText = '5';
    } else if (element.text() == 'Fuel-Powered') {
        elementToChange.innerText = '5 or 7';
    }
}


$('#wds-tab-list-container-id').on('click', '.tab', function() {
    updateSpecification();
});

updateSpecification();
Editor is loading...
Leave a Comment