I have the following jQuery code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
$('.green.bar .inner').css('width', '20%')
},1000);
});
</script>
And the html is:
<div class="green bar">
<div class="inner" style="width:10%"></div>
</div>
How can I do what the jQuery code does using just JavaScript?
Thanks a lot