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


Groups > comp.lang.javascript > #12143

How to programmatically display a value

From " Cal Who" <CalWhoNOSPAM@roadrunner.com>
Newsgroups comp.lang.javascript
Subject How to programmatically display a value
Date 2012-02-24 20:19 -0500
Organization A noiseless patient Spider
Message-ID <ji9cvn$pqa$1@dont-email.me> (permalink)

Show all headers | View raw


I calculate and want to display the numerical result.

I can do it by assigning to the value attribute of an <input type=text>
element.

However, I don't want the user to be able to change the value displayed.

I tried readonly="readonly" but, unless I had a bug in the code, I found I
couldn't programmatically change the value displayed by assigning to value.

How should I do that?

Thanks


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


Thread

How to programmatically display a value " Cal Who" <CalWhoNOSPAM@roadrunner.com> - 2012-02-24 20:19 -0500
  Re: How to programmatically display a value " Cal Who" <CalWhoNOSPAM@roadrunner.com> - 2012-02-24 21:25 -0500
    Re: How to programmatically display a value Swifty <steve.j.swift@gmail.com> - 2012-02-25 06:46 +0000
    Re: How to programmatically display a value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-25 13:19 +0100
      Re: How to programmatically display a value Dr J R Stockton <reply1208@merlyn.demon.co.uk> - 2012-02-26 20:38 +0000
      Re: How to programmatically display a value Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-02-27 15:53 +0100
        Re: How to programmatically display a value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-27 17:40 +0100

csiph-web