I am unable to loop and create multiple events
<pre><code>for(i=0;i&lt;daysofweek.length;i++){

$("input[name=" + daysofweek[i] + "]").change(function(){ if($(this).is(':checked')){ $("#" + daysofweek[i] + "_content").show();}else{  $("#" + daysofweek[i] + "_content").hide(); }     })   //loop through all days of the week creating the event that show/hides days
}
</code></pre>

<p>I dont know what to call it, but what I want is to have this change function for each day of the week.</p>

<p>Is there something wrong with my concatenation? The loop is definitely working and I'm getting the values from the array.</p>
