3

Is there a way to toggle two combined checkboxes with one click?

I have a small calander where I want to select weeks with checkboxes. One week can be in two month so I have two checkboxes for the same week. How can I combine them safe?

I'm using this abstract HTML:

<label for="aa"><input type="checkbox" id="bb" /></label><br />
<label for="bb"><input type="checkbox" id="aa" /></label>

See my updated fiddle for a full example.

This works fine in Firefox (exept you make a double click) in the IE9 is just the checkbox toggled where you click on.

Please don't suggest to use JavaScript. I know that this would be very simple.

4

1 回答 1

2

只有一个复选框怎么样?我的意思是,只有一个星期,虽然它跨越几个月,但不是整整两个星期!考虑一下您的设计,即 Week Ending 4/5/2012 是在 5 月结束的一周,当然它从 4 月开始,但如果您打算将您的几周放在一个袋子里,如果可以的话,做一些明确的事情。

于 2012-05-31T08:20:15.773 回答