su********@gmail.com wrote:
On Jul 1, 2:02 am, jmDesktop <needin4mat...@gmail.comwrote:
><input type="text" onchange="doIt(this);" />
How can I get the value of the textbox in doIt()?
I tried:
function doIt(o){
alert(' it is: " + o.Value);
}
But I get o is undefined.
I am trying to display what the user just typed in and wanted to do it
with the this keyword.
The *Value* is not a valid attribute. It is *value*.
Your case suggestion is of course correct, however:
`value' is _not_ the name of an attribute here, but of a *property*. It is
only called an attribute in the HTML source code (which the property
represents, and where case does not matter), and in the specification of
the interface that the DOM host object implements (where case does matter).
Please trim your quotes.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>