So I want to be able to change a divs width every second by, but the code I am currently using doesn't seem to work
<script type="text/javascript">
$("#progress").css("width", "55%");
</script>
<div id="progress"></div>
I have set the 'progress' div to 1px in the css.
#progress {
position: relative;
background: url('prog1.jpg') repeat-x;
height: 100%;
border: 1px solid #145b8c;
border-radius: 5px;
margin-left: -1px;
margin-top: -1px;
width: 1px;
}
Any help would be appreciated.