Hi,
I have five checkboxes out of which only one should be checked. I did the following and it works but very lengthy and redundant.
Is there any other simple way this can be achieved..
any ideas/thoughts..
thanks
I have five checkboxes out of which only one should be checked. I did the following and it works but very lengthy and redundant.
Code:
if (tornado.checked == true)
{
traffic.checked = false;
cable.checked = false;
holiday.checked = false;
outdoor.checked = false;
}
if (traffic.checked == true)
{
tornado.checked = false;
cable.checked = false;
holiday.checked = false;
outdoor.checked = false;
}
.....and so on 5 times
Is there any other simple way this can be achieved..
any ideas/thoughts..
thanks