• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 773
  • Last Modified:

Retrieving values of a text box

  I have an input box in a form with the name having a dot in it,;i.e; a name like "abc.txt". I want to get the value of this input box in a javascript function. How do I do it?
Thanx in advance,
1 Solution

at first i have a hard time how to find a solution for your problem but now i am proud to tell you that i got it.

just copy and past the code below.
i am using an IE browser i don't know if it works with netscape.


function showValue()
sValue = document.all["abc.txt"].value ;
alert( sValue ) ;


<P>Name: <INPUT name="abc.txt"></P>
<P><INPUT name="btnClick" type=button value="Click Me" onClick="showValue()"></P>

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now