Hello
I have couple of check boxes on my form, like....... my_check_box_monthly....... my_check_box_yearly.
I have 2 scenarios, so based on scenario, i hv to select either of the check box, as below
if scenario_1
check the my_check_box_monthly
else if scenario_2
check the my_check_box_yearly.
endif.
Pls. let me know How to write check the check box (my_check_box_daily) in Java Script?
Thank you
Solved! Go to Solution.
Views
Replies
Total Likes
Try this code,
if scenario_1
{
my_check_box_monthly.rawValue = "1";//Assigning "1" will check and "0" willl uncheck
my_check_box_yearly.rawValue = "0";
}
else if scenario_2
{
my_check_box_yearly.rawValue = "1";
my_check_box_monthly.rawValue = "0";
}
Thanks,
Anitha
Views
Replies
Total Likes
Try this code,
if scenario_1
{
my_check_box_monthly.rawValue = "1";//Assigning "1" will check and "0" willl uncheck
my_check_box_yearly.rawValue = "0";
}
else if scenario_2
{
my_check_box_yearly.rawValue = "1";
my_check_box_monthly.rawValue = "0";
}
Thanks,
Anitha
Views
Replies
Total Likes