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


Groups > comp.lang.javascript > #40372

changing the value of a text box with .js

From bill <william@TechServSys.com>
Newsgroups comp.lang.javascript
Subject changing the value of a text box with .js
Date 2021-09-05 14:17 -0400
Organization Aioe.org NNTP Server
Message-ID <sh31k5$167f$1@gioia.aioe.org> (permalink)

Show all headers | View raw


I know how to change the value of a span or div using:
onClick= document.getElementById("searchkey").value = "type min 3 
letters";

but that does not work for an input type=text element.

What is the proper way to do that?

-bill

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


Thread

changing the value of a text box with .js bill <william@TechServSys.com> - 2021-09-05 14:17 -0400
  Re: changing the value of a text box with .js Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-09-05 22:44 +0000
    Re: changing the value of a text box with .js JJ <jj4public@gmail.com> - 2021-09-06 14:39 +0700
      Re: changing the value of a text box with .js Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-09-17 00:46 +0200
  Re: changing the value of a text box with .js Arno Welzel <usenet@arnowelzel.de> - 2021-09-06 15:09 +0200

csiph-web