Here's a snippet of code that I'm working with:
<div id="test-content"></div>
<script>
var width = 100;
document.getElementById('test-content').style.width = width+ '%';
</script>
I encountered an issue when trying to set the width to 100%, any suggestions on how to resolve this?