>>>>>var myElement = ...
>>>>>if (myElement!=null)
>>>>> ....
>>>>>
>>>>>It is explained in the link.
>>>>
>>>>Thank you. Sorry, somehow I didn't see the link in the initial reply. I must be losing my mind.
>>>
>>>I actually added it with Update, so may be you didn't see it when you first opened my reply.
>>
>>Strange is that the var value is NOT null. But I can't get the .value of it. Even though the HTML code has value="123456". I must be missing something.
>
>Can you show your exact new code? Is it a hidden input? Did you also try text property?
I switched to jQuery syntax and now I get the value. It is probably even better to use jQuery than javascript.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham