I am trying to change the dropdown option value at the end from "10 rows" to "50 rows". The code below changes value to "50 rows" but it does not trigger the corresponding data. It's being run manually but not via JS. URL is https://trendlyne.com/mutual-fund/nav/6309/icici-prudential-technology-fund-direct-plan-growth/
document.querySelector('.select-wrap select').getElementsByTagName('option')[4].selected = 'selected';
OR
document.querySelector(".select-wrap select").value='50'