Simple question but I can't find a direct answer. Suppose I have two input fields:
<input type='hidden' id='cat' />
<input type='hidden' id='dog' />
How can I assign each a different value from Javascript? I know how to do this with one value:
<input type='hidden' id='cat' />
<script type="text/javascript">
document.getElementById('cat').value='meow' ;
</script>
But can't seem to make this happen with two different values.