|
|
 |
Re: FN-FORUM: Check box problem
date posted 19th March 2008 10:54
>Strange isn't it
>
>This is the Check box
>
>
>diaries?" Text="All Diary's">
>
>
>This is the bit of code
>
>
>function Check_Diary_Validate(source, arguments) {
> arguments.IsValid = false
> if (document.getElementById("ALL_Diaries") !== null) {
> if (document.getElementById("ALL_Diaries").Checked == true) {
> arguments.IsValid = true
> }
> }
>
>
>
>This bit works
>
> if (document.getElementById("ALL_Diaries").Checked == true
>
>But is doesn't get passed
>
> if (document.getElementById("ALL_Diaries") !== null) {
>
>because document.getElementById("ALL_Diaries") is null
>
>Pam
It might be something to do with the fact your using '!==' as your
comparison. It should probably be '!=' with just one equals sign after
the exclamation mark.
James
__________________________________________________
Get up to 33% off Norton Security - http://www.tiscali.co.uk/products/securepc/
|
 |
|