On Wednesday, June 19, 2013 4:18:57 AM UTC-4, Evertjan. wrote:
> justaguy wrote on 19 jun 2013 in comp.lang.javascript:
>
>
>
> > On Tuesday, June 18, 2013 5:44:49 PM UTC-4, Tim Streater wrote:
>
>
>
> >> justaguy <
lichun...@gmail.com> wrote:
>
>
>
> >> > <div id="nameX"></div>
>
> >> > document.getElementById('nameX').value = nm; // line 3
>
>
>
> >> I expect a <div> doesn't have a value, it has a textContent.
>
>
>
> > Sorry, Tim, I meant, <input type="text"> for id of "nameX", not DIV.
>
>
>
> Is it a shortcoming of Javascript,
>
> that it executes the actual code,
>
> and not the code that is ment?
>
>
>
> Show your actual and minimalistic code that fails,
>
> and decribe what you mean by fail
>
> by explaining what you expect that code to do.
>
>
Thanks for the note. This issue has been resolved, silly me, forgot the sequence of loading...