JavaScript mengatur pembaruan persentase lebar

document.getElementById('myElement').style.width = '80%';
Friendly Hawk