Hi there, im having a little trouble evaluating some checkboxes, so any help is gladly appreciated.
My form, briefly is as follows:
<form>
january <input type="checkbox" name="month">
<br><br>
february <input type="checkbox" name="month">
<br><br>
march <input type="checkbox" name="month">
<br><br>
...and so on
<input type="button" onclick="evaluate()" value="select">
</form>
And what i need to do is evaluate wich months were checked so i can show the info related to those months, and this is where im having problems. This is the code i have as far as i have figured it out:
<script type="text/javascript">
function evaluate(){
var limit=document.getElementsByName('month').length;
for (i=0; i<=limit-1; i++){
if (document.getElementsByName('month')[i].checked){
¿¿¿???
}
}
}
</script>
Any corrections or suggestions are welcomed!