Attaching the same event to mutiple selectors

Attaching the same event to mutiple selectors

Hey there all,

I have a list of 7 days (mon-Sun), and I am asking users for times in each day. I want to add a radio button to each day that says Not Available -which would set the times to 0, and fully available, which would set them for 24. I can do this for each day separately

$(document).ready(function() {

$("#monday-radio").click(function() {
$("#monday-times).slider('option','value', 24);
});
});
I know its not perfect but it works for the example. I could write this code out for each day, but I am sure there is a better way, but I don’t know. I know that you can replace #monday-times to attach the .click to all 7 days real easy, but what I don’t know how to do it attach the #monday-times to each day.

For example, I could put
"#monday-times, #tuesday-times, " etc. But how do I tell JQuery where to change the times.


I hope this example shows my point well, if not let me know and I will clearly.