Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32714

Re: Issue with assigning the newly inputted value of an INPUT box to SPAN

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: Issue with assigning the newly inputted value of an INPUT box to SPAN
Date 2017-03-10 19:52 +0000
Organization A noiseless patient Spider
Message-ID <87tw70ykny.fsf@bsb.me.uk> (permalink)
References <9296f5aa-bfd0-48a9-8d31-c3e9355cdf4a@googlegroups.com> <4ad424a0-1461-4739-9be3-0cc8be16dce9@googlegroups.com>

Show all headers | View raw


justaguy <lichunshen84@gmail.com> writes:
<snip>
> Never mind. I had a typo for the initial field id.  And it should be:
> <input type="text" id="fy" name="fy" size=8 onblur="document.getElementById('fyNew').innerHTML=document.getElementById('fy').value;">

Or, slightly simpler,

<input type=text name=fy size=8
       onblur="document.getElementById('fyNew').innerHTML=this.value">

though you usually get more maintainable source if you avoid using these
"onxxx" attributes.

-- 
Ben.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Issue with assigning the newly inputted value of an INPUT box to SPAN justaguy <lichunshen84@gmail.com> - 2017-03-10 08:24 -0800
  Re: Issue with assigning the newly inputted value of an INPUT box to SPAN justaguy <lichunshen84@gmail.com> - 2017-03-10 11:36 -0800
    Re: Issue with assigning the newly inputted value of an INPUT box to SPAN Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-10 19:52 +0000
      Re: Issue with assigning the newly inputted value of an INPUT box to SPAN justaguy <lichunshen84@gmail.com> - 2017-03-16 17:58 -0700

csiph-web