|
|
 |
Re: FN-FORUM: Check box problem
date posted 18th March 2008 23:37
> How do you check if a Check Box exists using Javascript before you test if
> it is checked?
>
> if (document.getElementById("ALL_Diaries") == true) {
>
>
> }
>
> doesn't work
I haven't had the time to learn Javascript yet but I suspect if the
element isn't found a null value will be returned.
Try something like:
if (document.getElementById("ALL_Diaries") != null) {
}
HTH
James
|
 |
|